home *** CD-ROM | disk | FTP | other *** search
MacBinary | 1993-01-07 | 13.0 KB | [TEXT/ttxt] |
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: MacBinary
(archive/macBinary).
Confidence | Program | Detection | Match Type | Support
|
---|
10%
| dexvert
| MacBinary (archive/macBinary)
| fallback
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| MacBinary II, inited, Thu Jan 7 06:19:30 1993, modified Thu Jan 7 06:19:30 1993, creator SimpleText, type ASCII, 12466 bytes "Grayscale Information" , at 0x3132 632 bytes resource
| default (weak)
| |
99%
| file
| data
| default
| |
74%
| TrID
| Macintosh plain text (MacBinary)
| default
| |
25%
| TrID
| MacBinary 2
| default (weak)
| |
100%
| siegfried
| fmt/1762 MacBinary (II)
| default
| |
100%
| lsar
| MacBinary
| default
|
|
id metadata |
---|
key | value |
---|
macFileType | [TEXT] |
macFileCreator | [ttxt] |
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 15 47 72 61 79 73 63 | 61 6c 65 20 49 6e 66 6f |..Graysc|ale Info|
|00000010| 72 6d 61 74 69 6f 6e 00 | 00 00 00 00 00 00 00 00 |rmation.|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 74 74 78 | 74 01 00 00 00 00 00 00 |.TEXTttx|t.......|
|00000050| 00 00 00 00 00 30 b2 00 | 00 02 78 a7 71 c2 42 a7 |.....0..|..x.q.B.|
|00000060| 71 c2 42 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |q.B.....|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 2b a8 00 00 |........|....+...|
|00000080| 47 72 61 79 73 63 61 6c | 65 20 49 6e 66 6f 72 6d |Grayscal|e Inform|
|00000090| 61 74 69 6f 6e 0d 20 0d | 41 72 74 69 63 6c 65 20 |ation. .|Article |
|000000a0| 43 72 65 61 74 65 64 3a | 20 32 33 20 41 70 72 69 |Created:| 23 Apri|
|000000b0| 6c 20 31 39 38 39 0d 41 | 72 74 69 63 6c 65 20 4c |l 1989.A|rticle L|
|000000c0| 61 73 74 20 52 65 76 69 | 65 77 65 64 3a 20 36 20 |ast Revi|ewed: 6 |
|000000d0| 4a 75 6c 79 20 31 39 39 | 32 0d 41 72 74 69 63 6c |July 199|2.Articl|
|000000e0| 65 20 4c 61 73 74 20 55 | 70 64 61 74 65 64 3a 0d |e Last U|pdated:.|
|000000f0| 20 0d 54 4f 50 49 43 20 | 2d 2d 2d 2d 2d 2d 2d 2d | .TOPIC |--------|
|00000100| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000110| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000120| 2d 2d 2d 2d 2d 2d 2d 0d | 20 0d 41 20 75 73 65 72 |-------.| .A user|
|00000130| 20 68 61 73 20 66 6f 75 | 6e 64 20 28 75 73 69 6e | has fou|nd (usin|
|00000140| 67 20 76 65 72 79 20 73 | 6f 70 68 69 73 74 69 63 |g very s|ophistic|
|00000150| 61 74 65 64 20 70 68 6f | 74 6f 6d 65 74 72 69 63 |ated pho|tometric|
|00000160| 20 64 65 76 69 63 65 73 | 29 20 74 68 61 74 20 77 | devices|) that w|
|00000170| 68 65 6e 0d 68 65 20 67 | 65 6e 65 72 61 74 65 73 |hen.he g|enerates|
|00000180| 20 61 20 6d 6f 6e 6f 63 | 68 72 6f 6d 65 20 70 61 | a monoc|hrome pa|
|00000190| 6c 65 74 74 65 20 66 72 | 6f 6d 20 61 20 63 6f 6c |lette fr|om a col|
|000001a0| 6f 72 20 70 61 6c 65 74 | 74 65 2c 20 73 6f 6d 65 |or palet|te, some|
|000001b0| 20 6f 66 20 74 68 65 20 | 74 6f 6e 65 73 0d 61 72 | of the |tones.ar|
|000001c0| 65 20 69 64 65 6e 74 69 | 63 61 6c 2e 20 20 54 68 |e identi|cal. Th|
|000001d0| 69 73 20 61 72 74 69 63 | 6c 65 20 64 69 73 63 75 |is artic|le discu|
|000001e0| 73 73 65 73 20 74 68 69 | 73 20 70 68 65 6e 6f 6d |sses thi|s phenom|
|000001f0| 65 6e 6f 6e 2e 0d 20 0d | 44 49 53 43 55 53 53 49 |enon.. .|DISCUSSI|
|00000200| 4f 4e 20 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |ON -----|--------|
|00000210| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000220| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 0d 20 0d |--------|-----. .|
|00000230| 49 6e 20 72 65 67 61 72 | 64 20 74 6f 20 75 73 69 |In regar|d to usi|
|00000240| 6e 67 20 74 68 65 20 63 | 6f 6c 6f 72 20 70 61 6c |ng the c|olor pal|
|00000250| 65 74 74 65 2c 20 74 68 | 65 20 50 61 6c 65 74 74 |ette, th|e Palett|
|00000260| 65 20 4d 61 6e 61 67 65 | 72 20 64 6f 65 73 20 6e |e Manage|r does n|
|00000270| 6f 74 20 70 6c 61 63 65 | 0d 6e 65 77 20 63 6f 6c |ot place|.new col|
|00000280| 6f 72 73 20 69 6e 74 6f | 20 74 68 65 20 64 69 73 |ors into| the dis|
|00000290| 70 6c 61 79 20 64 65 76 | 69 63 65 27 73 20 63 6f |play dev|ice's co|
|000002a0| 6c 6f 72 20 6c 6f 6f 6b | 2d 75 70 20 74 61 62 6c |lor look|-up tabl|
|000002b0| 65 20 28 43 4c 55 54 29 | 2e 20 20 49 74 20 6d 61 |e (CLUT)|. It ma|
|000002c0| 70 73 0d 74 68 65 20 72 | 65 71 75 65 73 74 65 64 |ps.the r|equested|
|000002d0| 20 63 6f 6c 6f 72 73 20 | 69 6e 20 61 20 70 61 6c | colors |in a pal|
|000002e0| 65 74 74 65 20 74 6f 20 | 61 76 61 69 6c 61 62 6c |ette to |availabl|
|000002f0| 65 20 63 6f 6c 6f 72 73 | 20 77 69 74 68 69 6e 20 |e colors| within |
|00000300| 74 68 65 20 63 75 72 72 | 65 6e 74 0d 63 6f 6c 6f |the curr|ent.colo|
|00000310| 72 20 74 61 62 6c 65 2e | 20 20 54 68 65 20 63 6f |r table.| The co|
|00000320| 72 72 65 63 74 20 6d 65 | 74 68 6f 64 20 66 6f 72 |rrect me|thod for|
|00000330| 20 75 73 69 6e 67 20 73 | 70 65 63 69 66 69 63 20 | using s|pecific |
|00000340| 63 6f 6c 6f 72 20 76 61 | 6c 75 65 73 20 69 73 20 |color va|lues is |
|00000350| 74 6f 20 75 73 65 0d 74 | 68 65 20 43 6f 6c 6f 72 |to use.t|he Color|
|00000360| 20 4d 61 6e 61 67 65 72 | 20 63 61 6c 6c 73 20 74 | Manager| calls t|
|00000370| 6f 20 63 72 65 61 74 65 | 20 61 6e 64 20 6c 6f 61 |o create| and loa|
|00000380| 64 20 61 20 70 72 6f 67 | 72 61 6d 6d 65 64 20 63 |d a prog|rammed c|
|00000390| 6f 6c 6f 72 20 74 61 62 | 6c 65 2e 0d 20 0d 54 68 |olor tab|le.. .Th|
|000003a0| 65 72 65 20 61 72 65 20 | 73 6f 6d 65 20 6f 74 68 |ere are |some oth|
|000003b0| 65 72 20 70 6f 69 6e 74 | 73 20 74 68 61 74 20 6d |er point|s that m|
|000003c0| 75 73 74 20 74 61 6b 65 | 6e 20 69 6e 74 6f 20 61 |ust take|n into a|
|000003d0| 63 63 6f 75 6e 74 20 61 | 66 74 65 72 20 73 65 74 |ccount a|fter set|
|000003e0| 74 69 6e 67 0d 79 6f 75 | 72 20 63 6f 6c 6f 72 73 |ting.you|r colors|
|000003f0| 20 77 69 74 68 20 74 68 | 65 20 43 6f 6c 6f 72 20 | with th|e Color |
|00000400| 4d 61 6e 61 67 65 72 2e | 0d 20 0d 2d ca 49 74 20 |Manager.|. .-.It |
|00000410| 69 73 20 70 6f 73 73 69 | 62 6c 65 20 74 6f 20 70 |is possi|ble to p|
|00000420| 72 6f 64 75 63 65 20 67 | 72 61 79 73 20 62 79 20 |roduce g|rays by |
|00000430| 73 65 74 74 69 6e 67 20 | 74 68 65 20 6d 6f 6e 69 |setting |the moni|
|00000440| 74 6f 72 20 74 6f 20 6d | 6f 6e 6f 63 68 72 6f 6d |tor to m|onochrom|
|00000450| 65 0d 6f 75 74 70 75 74 | 20 61 6e 64 20 6e 6f 74 |e.output| and not|
|00000460| 20 73 65 74 74 69 6e 67 | 20 67 72 61 79 73 2c 20 | setting| grays, |
|00000470| 61 73 20 74 68 65 20 75 | 73 65 72 20 69 6e 20 71 |as the u|ser in q|
|00000480| 75 65 73 74 69 6f 6e 20 | 70 72 6f 62 61 62 6c 79 |uestion |probably|
|00000490| 20 64 6f 65 73 2e 20 20 | 57 68 65 6e 0d 73 65 6c | does. |When.sel|
|000004a0| 65 63 74 69 6e 67 20 6d | 6f 6e 6f 63 68 72 6f 6d |ecting m|onochrom|
|000004b0| 65 20 66 72 6f 6d 20 74 | 68 65 20 6d 6f 6e 69 74 |e from t|he monit|
|000004c0| 6f 72 27 73 20 43 6f 6e | 74 72 6f 6c 20 50 61 6e |or's Con|trol Pan|
|000004d0| 65 6c 20 43 44 45 56 2c | 20 6c 75 6d 69 6e 61 6e |el CDEV,| luminan|
|000004e0| 63 65 0d 6d 61 70 70 69 | 6e 67 20 6f 66 20 74 68 |ce.mappi|ng of th|
|000004f0| 65 20 63 6f 6c 6f 72 73 | 20 69 6e 20 74 68 65 20 |e colors| in the |
|00000500| 63 6f 6c 6f 72 20 74 61 | 62 6c 65 20 69 73 20 64 |color ta|ble is d|
|00000510| 6f 6e 65 20 74 6f 20 63 | 61 6c 63 75 6c 61 74 65 |one to c|alculate|
|00000520| 20 61 6e 64 20 72 65 70 | 6c 61 63 65 0d 74 68 65 | and rep|lace.the|
|00000530| 20 52 47 42 20 76 61 6c | 75 65 73 20 66 6f 72 20 | RGB val|ues for |
|00000540| 61 20 6d 6f 6e 6f 63 68 | 72 6f 6d 65 20 70 69 78 |a monoch|rome pix|
|00000550| 65 6c 2e 20 20 54 68 65 | 20 6c 75 6d 69 6e 61 6e |el. The| luminan|
|00000560| 63 65 20 6d 61 70 70 69 | 6e 67 20 66 6f 6c 6c 6f |ce mappi|ng follo|
|00000570| 77 73 20 74 68 69 73 0d | 65 71 75 61 74 69 6f 6e |ws this.|equation|
|00000580| 3a 0d 20 0d 20 20 20 4c | 75 6d 69 6e 61 6e 63 65 |:. . L|uminance|
|00000590| 20 3d 20 2e 33 2a 72 65 | 64 20 2b 20 2e 35 39 2a | = .3*re|d + .59*|
|000005a0| 67 72 65 65 6e 20 2b 20 | 2e 31 31 2a 62 6c 75 65 |green + |.11*blue|
|000005b0| 0d 20 0d 54 68 65 20 72 | 65 73 75 6c 74 69 6e 67 |. .The r|esulting|
|000005c0| 20 76 61 6c 75 65 20 69 | 73 20 70 6c 61 63 65 64 | value i|s placed|
|000005d0| 20 69 6e 74 6f 20 74 68 | 65 20 64 69 73 70 6c 61 | into th|e displa|
|000005e0| 79 20 64 65 76 69 63 65 | 27 73 20 74 61 62 6c 65 |y device|'s table|
|000005f0| 20 66 6f 72 20 52 2c 20 | 47 2c 0d 61 6e 64 20 42 | for R, |G,.and B|
|00000600| 2e 20 20 54 68 65 20 76 | 61 6c 75 65 73 20 61 72 |. The v|alues ar|
|00000610| 65 20 61 6c 74 65 72 65 | 64 20 61 63 63 6f 72 64 |e altere|d accord|
|00000620| 69 6e 67 20 74 6f 20 74 | 68 65 20 61 62 6f 76 65 |ing to t|he above|
|00000630| 20 65 71 75 61 74 69 6f | 6e 2e 20 54 68 69 73 20 | equatio|n. This |
|00000640| 6e 65 65 64 73 0d 74 6f | 20 62 65 20 74 61 6b 65 |needs.to| be take|
|00000650| 6e 20 69 6e 74 6f 20 61 | 63 63 6f 75 6e 74 20 69 |n into a|ccount i|
|00000660| 66 20 74 68 65 20 6d 6f | 6e 6f 63 68 72 6f 6d 65 |f the mo|nochrome|
|00000670| 20 6f 70 74 69 6f 6e 20 | 69 73 20 63 68 6f 73 65 | option |is chose|
|00000680| 6e 20 66 6f 72 20 74 68 | 65 20 41 70 70 6c 65 0d |n for th|e Apple.|
|00000690| 48 69 67 68 2d 52 65 73 | 6f 6c 75 74 69 6f 6e 20 |High-Res|olution |
|000006a0| 43 6f 6c 6f 72 20 4d 6f | 6e 69 74 6f 72 2e 0d 20 |Color Mo|nitor.. |
|000006b0| 0d 2d ca 49 66 20 79 6f | 75 20 70 6c 61 63 65 20 |.-.If yo|u place |
|000006c0| 79 6f 75 72 20 6f 77 6e | 20 52 47 42 20 22 67 72 |your own| RGB "gr|
|000006d0| 61 79 22 20 76 61 6c 75 | 65 73 20 69 6e 74 6f 20 |ay" valu|es into |
|000006e0| 61 20 63 6f 6c 6f 72 20 | 74 61 62 6c 65 2c 20 79 |a color |table, y|
|000006f0| 6f 75 20 6d 75 73 74 0d | 61 6c 73 6f 20 74 61 6b |ou must.|also tak|
|00000700| 65 20 69 6e 74 6f 20 61 | 63 63 6f 75 6e 74 20 67 |e into a|ccount g|
|00000710| 61 6d 6d 61 20 63 6f 72 | 72 65 63 74 69 6f 6e 2e |amma cor|rection.|
|00000720| 20 47 61 6d 6d 61 20 63 | 6f 72 72 65 63 74 69 6f | Gamma c|orrectio|
|00000730| 6e 20 69 73 20 64 6f 6e | 65 20 62 79 20 74 68 65 |n is don|e by the|
|00000740| 0d 64 69 73 70 6c 61 79 | 20 64 65 76 69 63 65 27 |.display| device'|
|00000750| 73 20 64 72 69 76 65 72 | 20 74 6f 20 63 6f 72 72 |s driver| to corr|
|00000760| 65 63 74 20 74 68 65 20 | 64 69 73 70 72 6f 70 6f |ect the |dispropo|
|00000770| 72 74 69 6f 6e 61 74 65 | 20 6c 69 67 68 74 20 6f |rtionate| light o|
|00000780| 75 74 70 75 74 20 6f 66 | 0d 74 68 65 20 43 52 54 |utput of|.the CRT|
|00000790| 20 70 68 6f 73 70 68 6f | 72 73 20 62 79 20 63 6f | phospho|rs by co|
|000007a0| 6d 70 61 72 69 73 6f 6e | 20 77 69 74 68 20 74 68 |mparison| with th|
|000007b0| 65 20 70 72 6f 70 6f 72 | 74 69 6f 6e 61 6c 20 69 |e propor|tional i|
|000007c0| 6e 70 75 74 20 76 6f 6c | 74 61 67 65 73 20 6f 66 |nput vol|tages of|
|000007d0| 0d 74 68 65 20 76 69 64 | 65 6f 20 73 69 67 6e 61 |.the vid|eo signa|
|000007e0| 6c 2e 20 20 54 6f 20 73 | 65 74 20 61 20 6c 69 6e |l. To s|et a lin|
|000007f0| 65 61 72 20 72 65 6c 61 | 74 69 6f 6e 73 68 69 70 |ear rela|tionship|
|00000800| 20 62 65 74 77 65 65 6e | 20 63 6f 6c 6f 72 73 20 | between| colors |
|00000810| 61 6e 64 20 6f 75 74 70 | 75 74 2c 0d 74 68 65 20 |and outp|ut,.the |
|00000820| 76 61 6c 75 65 73 20 73 | 65 74 20 66 6f 72 20 74 |values s|et for t|
|00000830| 68 65 20 4d 61 63 69 6e | 74 6f 73 68 20 49 49 20 |he Macin|tosh II |
|00000840| 56 69 64 65 6f 20 43 61 | 72 64 20 61 72 65 20 63 |Video Ca|rd are c|
|00000850| 68 61 6e 67 65 64 20 74 | 6f 20 6e 65 77 20 76 61 |hanged t|o new va|
|00000860| 6c 75 65 73 2c 0d 77 68 | 69 63 68 20 74 68 65 6e |lues,.wh|ich then|
|00000870| 20 70 72 6f 64 75 63 65 | 20 74 68 65 20 63 6f 72 | produce| the cor|
|00000880| 72 65 63 74 65 64 20 63 | 6f 6c 6f 72 20 6f 75 74 |rected c|olor out|
|00000890| 70 75 74 20 6f 6e 20 74 | 68 65 20 6d 6f 6e 69 74 |put on t|he monit|
|000008a0| 6f 72 2e 20 54 65 73 74 | 0d 65 71 75 69 70 6d 65 |or. Test|.equipme|
|000008b0| 6e 74 20 64 65 74 65 63 | 74 73 20 61 20 67 61 6d |nt detec|ts a gam|
|000008c0| 6d 61 2d 66 69 6c 74 65 | 72 65 64 20 73 65 74 20 |ma-filte|red set |
|000008d0| 6f 66 20 76 61 6c 75 65 | 73 20 66 72 6f 6d 20 74 |of value|s from t|
|000008e0| 68 65 20 6d 6f 6e 69 74 | 6f 72 2e 0d 20 0d 54 68 |he monit|or.. .Th|
|000008f0| 65 20 67 61 6d 6d 61 20 | 63 6f 72 72 65 63 74 69 |e gamma |correcti|
|00000900| 6f 6e 20 69 73 20 61 75 | 74 6f 6d 61 74 69 63 61 |on is au|tomatica|
|00000910| 6c 6c 79 20 68 61 6e 64 | 6c 65 64 20 66 6f 72 20 |lly hand|led for |
|00000920| 61 6c 6c 20 76 61 6c 75 | 65 73 20 77 72 69 74 74 |all valu|es writt|
|00000930| 65 6e 20 74 6f 0d 74 68 | 65 20 64 65 76 69 63 65 |en to.th|e device|
|00000940| 27 73 20 63 6f 6c 6f 72 | 20 74 61 62 6c 65 2e 20 |'s color| table. |
|00000950| 20 54 68 69 73 20 69 73 | 20 62 61 73 65 64 20 6f | This is| based o|
|00000960| 6e 20 61 6e 20 65 6d 70 | 69 72 69 63 61 6c 6c 79 |n an emp|irically|
|00000970| 2d 64 65 72 69 76 65 64 | 20 67 61 6d 6d 61 0d 6c |-derived| gamma.l|
|00000980| 6f 6f 6b 2d 75 70 20 74 | 61 62 6c 65 2e 20 49 66 |ook-up t|able. If|
|00000990| 20 74 68 65 20 73 65 6c | 65 63 74 65 64 20 76 61 | the sel|ected va|
|000009a0| 6c 75 65 73 20 66 61 6c | 6c 20 77 69 74 68 69 6e |lues fal|l within|
|000009b0| 20 74 68 65 20 73 61 6d | 65 20 6c 6f 6f 6b 2d 75 | the sam|e look-u|
|000009c0| 70 20 74 61 62 6c 65 0d | 72 65 66 65 72 65 6e 63 |p table.|referenc|
|000009d0| 65 2c 20 74 68 65 79 20 | 63 61 6e 20 62 65 20 6d |e, they |can be m|
|000009e0| 61 70 70 65 64 20 74 6f | 20 74 68 65 20 73 61 6d |apped to| the sam|
|000009f0| 65 20 67 61 6d 6d 61 20 | 76 61 6c 75 65 2e 20 20 |e gamma |value. |
|00000a00| 54 68 69 73 20 77 6f 75 | 6c 64 20 65 78 70 6c 61 |This wou|ld expla|
|00000a10| 69 6e 0d 77 68 79 20 73 | 6f 6d 65 20 76 61 6c 75 |in.why s|ome valu|
|00000a20| 65 73 20 61 72 65 20 74 | 68 65 20 73 61 6d 65 2e |es are t|he same.|
|00000a30| 20 20 20 54 68 65 20 67 | 61 6d 6d 61 20 74 61 62 | The g|amma tab|
|00000a40| 6c 65 20 49 44 20 69 73 | 20 6c 6f 63 61 74 65 64 |le ID is| located|
|00000a50| 20 69 6e 20 74 68 65 20 | 53 43 52 4e 0d 72 65 73 | in the |SCRN.res|
|00000a60| 6f 75 72 63 65 20 6f 66 | 20 74 68 65 20 53 79 73 |ource of| the Sys|
|00000a70| 74 65 6d 20 66 69 6c 65 | 20 66 6f 72 20 74 68 65 |tem file| for the|
|00000a80| 20 4d 61 63 69 6e 74 6f | 73 68 20 49 49 20 56 69 | Macinto|sh II Vi|
|00000a90| 64 65 6f 20 43 61 72 64 | 2e 20 41 20 6e 65 77 20 |deo Card|. A new |
|00000aa0| 47 41 4d 41 0d 52 65 73 | 6f 75 72 63 65 20 74 61 |GAMA.Res|ource ta|
|00000ab0| 62 6c 65 20 63 61 6e 20 | 62 65 20 64 65 66 69 6e |ble can |be defin|
|00000ac0| 65 64 20 61 6e 64 20 69 | 6e 73 74 61 6c 6c 65 64 |ed and i|nstalled|
|00000ad0| 20 69 6e 20 74 68 65 20 | 53 79 73 74 65 6d 20 66 | in the |System f|
|00000ae0| 69 6c 65 20 66 6f 72 20 | 75 73 65 20 62 79 0d 74 |ile for |use by.t|
|00000af0| 68 65 20 4d 61 63 69 6e | 74 6f 73 68 20 49 49 20 |he Macin|tosh II |
|00000b00| 56 69 64 65 6f 20 43 61 | 72 64 2e 20 54 6f 20 75 |Video Ca|rd. To u|
|00000b10| 73 65 20 74 68 65 20 6e | 65 77 20 67 61 6d 6d 61 |se the n|ew gamma|
|00000b20| 20 74 61 62 6c 65 2c 20 | 74 68 65 20 47 41 4d 41 | table, |the GAMA|
|00000b30| 20 72 65 73 6f 75 72 63 | 65 0d 49 44 20 6d 75 73 | resourc|e.ID mus|
|00000b40| 74 20 62 65 20 63 68 61 | 6e 67 65 64 20 69 6e 20 |t be cha|nged in |
|00000b50| 74 68 65 20 53 43 52 4e | 20 72 65 73 6f 75 72 63 |the SCRN| resourc|
|00000b60| 65 20 74 6f 20 74 68 61 | 74 20 6f 66 20 74 68 65 |e to tha|t of the|
|00000b70| 20 6e 65 77 20 74 61 62 | 6c 65 2e 0d 20 0d 54 68 | new tab|le.. .Th|
|00000b80| 65 20 73 61 66 65 73 74 | 20 76 61 6c 75 65 73 20 |e safest| values |
|00000b90| 66 6f 72 20 61 6e 79 20 | 74 65 73 74 69 6e 67 20 |for any |testing |
|00000ba0| 77 69 6c 6c 20 70 72 6f | 62 61 62 6c 79 20 62 65 |will pro|bably be|
|00000bb0| 20 61 20 6c 69 6e 65 61 | 72 20 74 61 62 6c 65 20 | a linea|r table |
|00000bc0| 74 68 61 74 0d 64 6f 65 | 73 20 6e 6f 20 67 61 6d |that.doe|s no gam|
|00000bd0| 6d 61 20 63 6f 72 72 65 | 63 74 69 6f 6e 2e 20 20 |ma corre|ction. |
|00000be0| 41 20 71 75 69 63 6b 20 | 61 6e 64 20 65 61 73 79 |A quick |and easy|
|00000bf0| 20 77 61 79 20 74 6f 20 | 64 6f 20 74 68 69 73 20 | way to |do this |
|00000c00| 69 73 20 74 6f 20 70 61 | 73 73 20 2d 31 0d 5b 64 |is to pa|ss -1.[d|
|00000c10| 67 70 3a 20 61 63 63 6f | 72 64 69 6e 67 20 74 6f |gp: acco|rding to|
|00000c20| 20 44 65 73 69 67 6e 69 | 6e 67 20 43 61 72 64 73 | Designi|ng Cards|
|00000c30| 20 26 20 44 72 69 76 65 | 72 73 20 79 6f 75 20 73 | & Drive|rs you s|
|00000c40| 68 6f 75 6c 64 20 70 61 | 73 73 20 4e 55 4c 4c 2c |hould pa|ss NULL,|
|00000c50| 20 6e 6f 74 20 2d 31 5d | 20 74 6f 20 74 68 65 20 | not -1]| to the |
|00000c60| 53 65 74 47 61 6d 6d 61 | 20 43 6f 6e 74 72 6f 6c |SetGamma| Control|
|00000c70| 20 70 61 72 61 6d 65 74 | 65 72 20 62 6c 6f 63 6b | paramet|er block|
|00000c80| 20 61 73 20 74 68 65 20 | 6e 65 77 20 74 61 62 6c | as the |new tabl|
|00000c90| 65 20 61 64 64 72 65 73 | 73 2e 20 20 54 68 69 73 |e addres|s. This|
|00000ca0| 0d 63 61 75 73 65 73 20 | 61 20 6c 69 6e 65 61 72 |.causes |a linear|
|00000cb0| 20 74 61 62 6c 65 20 74 | 6f 20 62 65 20 75 73 65 | table t|o be use|
|00000cc0| 64 2c 20 67 75 61 72 61 | 6e 74 65 65 69 6e 67 20 |d, guara|nteeing |
|00000cd0| 74 68 61 74 20 61 6c 6c | 20 6f 66 20 74 68 65 20 |that all| of the |
|00000ce0| 70 6f 73 73 69 62 6c 65 | 0d 67 72 61 79 20 6c 65 |possible|.gray le|
|00000cf0| 76 65 6c 73 20 6f 66 20 | 74 68 65 20 63 61 72 64 |vels of |the card|
|00000d00| 20 61 72 65 20 61 76 61 | 69 6c 61 62 6c 65 2e 20 | are ava|ilable. |
|00000d10| 20 41 74 20 74 68 61 74 | 20 70 6f 69 6e 74 2c 20 | At that| point, |
|00000d20| 74 68 65 20 61 63 74 75 | 61 6c 20 63 6f 6c 6f 72 |the actu|al color|
|00000d30| 0d 6f 75 74 70 75 74 20 | 6f 6e 20 74 68 65 20 6d |.output |on the m|
|00000d40| 6f 6e 69 74 6f 72 20 64 | 65 70 65 6e 64 73 20 6f |onitor d|epends o|
|00000d50| 6e 20 74 68 65 20 70 68 | 6f 73 70 68 6f 72 73 20 |n the ph|osphors |
|00000d60| 74 68 65 6d 73 65 6c 76 | 65 73 2c 20 77 68 69 63 |themselv|es, whic|
|00000d70| 68 20 68 61 76 65 20 61 | 0d 76 61 72 69 61 6e 63 |h have a|.varianc|
|00000d80| 65 20 66 72 6f 6d 20 6d | 6f 6e 69 74 6f 72 20 74 |e from m|onitor t|
|00000d90| 6f 20 6d 6f 6e 69 74 6f | 72 20 6f 66 20 2b 2f 2d |o monito|r of +/-|
|00000da0| 2e 30 32 20 66 6f 72 20 | 74 68 65 20 72 65 64 20 |.02 for |the red |
|00000db0| 61 6e 64 20 67 72 65 65 | 6e 20 70 68 6f 73 70 68 |and gree|n phosph|
|00000dc0| 6f 72 73 0d 61 6e 64 20 | 2b 2f 2d 2e 30 31 35 20 |ors.and |+/-.015 |
|00000dd0| 66 6f 72 20 74 68 65 20 | 62 6c 75 65 2e 20 54 68 |for the |blue. Th|
|00000de0| 65 20 43 49 45 20 63 6f | 6f 72 64 69 6e 61 74 65 |e CIE co|ordinate|
|00000df0| 73 20 6f 66 20 74 68 65 | 20 70 68 6f 73 70 68 6f |s of the| phospho|
|00000e00| 72 73 20 61 72 65 3a 0d | 20 0d 20 20 20 52 65 64 |rs are:.| . Red|
|00000e10| 3a 20 78 3d 2e 36 32 35 | 20 79 3d 2e 33 34 20 47 |: x=.625| y=.34 G|
|00000e20| 72 65 65 6e 3a 20 78 3d | 2e 32 38 20 20 20 79 3d |reen: x=|.28 y=|
|00000e30| 2e 35 39 35 20 42 6c 75 | 65 3a 20 20 20 20 20 78 |.595 Blu|e: x|
|00000e40| 3d 2e 31 35 35 20 79 3d | 2e 30 37 30 0d 20 0d 54 |=.155 y=|.070. .T|
|00000e50| 6f 20 70 72 6f 70 65 72 | 6c 79 20 73 65 74 20 74 |o proper|ly set t|
|00000e60| 68 65 20 67 61 6d 6d 61 | 20 74 61 62 6c 65 2c 20 |he gamma| table, |
|00000e70| 73 65 65 20 74 68 65 20 | 69 6e 66 6f 72 6d 61 74 |see the |informat|
|00000e80| 69 6f 6e 20 62 65 6c 6f | 77 20 61 62 6f 75 74 20 |ion belo|w about |
|00000e90| 68 6f 77 20 74 68 65 0d | 64 72 69 76 65 72 20 75 |how the.|driver u|
|00000ea0| 73 65 73 20 74 68 69 73 | 20 74 61 62 6c 65 2e 20 |ses this| table. |
|00000eb0| 20 59 6f 75 20 73 68 6f | 75 6c 64 20 61 6c 73 6f | You sho|uld also|
|00000ec0| 20 69 6e 76 65 73 74 69 | 67 61 74 65 20 68 6f 77 | investi|gate how|
|00000ed0| 20 74 6f 20 63 6f 6e 74 | 72 6f 6c 20 64 65 76 69 | to cont|rol devi|
|00000ee0| 63 65 0d 64 72 69 76 65 | 72 73 2e 20 54 68 69 73 |ce.drive|rs. This|
|00000ef0| 20 69 73 20 64 65 73 63 | 72 69 62 65 64 20 69 6e | is desc|ribed in|
|00000f00| 20 22 49 6e 73 69 64 65 | 20 4d 61 63 69 6e 74 6f | "Inside| Macinto|
|00000f10| 73 68 20 56 6f 6c 75 6d | 65 20 49 49 2e 22 20 41 |sh Volum|e II." A|
|00000f20| 6e 6f 74 68 65 72 20 73 | 6f 75 72 63 65 0d 6f 66 |nother s|ource.of|
|00000f30| 20 69 6e 66 6f 72 6d 61 | 74 69 6f 6e 20 69 73 20 | informa|tion is |
|00000f40| 74 68 65 20 22 44 65 73 | 69 67 6e 69 6e 67 20 43 |the "Des|igning C|
|00000f50| 61 72 64 73 20 61 6e 64 | 20 44 72 69 76 65 72 73 |ards and| Drivers|
|00000f60| 20 4d 61 6e 75 61 6c 20 | 66 6f 72 20 74 68 65 0d | Manual |for the.|
|00000f70| 4d 61 63 69 6e 74 6f 73 | 68 2e 22 0d 20 0d 47 61 |Macintos|h.". .Ga|
|00000f80| 6d 6d 61 20 49 6e 66 6f | 72 6d 61 74 69 6f 6e 0d |mma Info|rmation.|
|00000f90| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000fa0| 2d 0d 49 6e 20 74 68 65 | 20 63 75 72 72 65 6e 74 |-.In the| current|
|00000fb0| 20 69 6d 70 6c 65 6d 65 | 6e 74 61 74 69 6f 6e 20 | impleme|ntation |
|00000fc0| 6f 66 20 74 68 65 20 76 | 69 64 65 6f 20 64 72 69 |of the v|ideo dri|
|00000fd0| 76 65 72 73 2c 20 67 61 | 6d 6d 61 20 63 6f 72 72 |vers, ga|mma corr|
|00000fe0| 65 63 74 69 6f 6e 20 69 | 73 0d 61 70 70 6c 69 65 |ection i|s.applie|
|00000ff0| 64 20 74 6f 20 72 65 71 | 75 65 73 74 65 64 2c 20 |d to req|uested, |
|00001000| 61 62 73 6f 6c 75 74 65 | 20 63 6f 6c 6f 72 73 2c |absolute| colors,|
|00001010| 20 69 6d 6d 65 64 69 61 | 74 65 6c 79 20 62 65 66 | immedia|tely bef|
|00001020| 6f 72 65 20 74 68 65 79 | 20 61 72 65 20 73 65 74 |ore they| are set|
|00001030| 20 69 6e 0d 74 68 65 20 | 63 6f 6c 6f 72 20 6c 6f | in.the |color lo|
|00001040| 6f 6b 2d 75 70 20 74 61 | 62 6c 65 20 62 79 20 74 |ok-up ta|ble by t|
|00001050| 68 65 20 53 65 74 45 6e | 74 72 69 65 73 20 63 6f |he SetEn|tries co|
|00001060| 6e 74 72 6f 6c 20 63 61 | 6c 6c 2e 20 4d 6f 72 65 |ntrol ca|ll. More|
|00001070| 20 73 70 65 63 69 66 69 | 63 61 6c 6c 79 2c 0d 73 | specifi|cally,.s|
|00001080| 6f 6d 65 20 6e 75 6d 62 | 65 72 20 6f 66 20 68 69 |ome numb|er of hi|
|00001090| 67 68 2d 6f 72 64 65 72 | 20 62 69 74 73 20 61 72 |gh-order| bits ar|
|000010a0| 65 20 65 78 74 72 61 63 | 74 65 64 20 66 72 6f 6d |e extrac|ted from|
|000010b0| 20 74 68 65 20 72 65 64 | 2c 20 67 72 65 65 6e 2c | the red|, green,|
|000010c0| 20 61 6e 64 20 62 6c 75 | 65 0d 63 68 61 6e 6e 65 | and blu|e.channe|
|000010d0| 6c 73 20 61 6e 64 20 75 | 73 65 64 20 61 73 20 61 |ls and u|sed as a|
|000010e0| 6e 20 69 6e 64 65 78 20 | 69 6e 74 6f 20 74 61 62 |n index |into tab|
|000010f0| 6c 65 73 20 6f 66 20 63 | 6f 72 72 65 63 74 65 64 |les of c|orrected|
|00001100| 20 76 61 6c 75 65 73 2e | 20 20 54 68 65 73 65 0d | values.| These.|
|00001110| 76 61 6c 75 65 73 20 61 | 72 65 20 74 68 65 6e 20 |values a|re then |
|00001120| 70 6c 61 63 65 64 20 69 | 6e 74 6f 20 74 68 65 20 |placed i|nto the |
|00001130| 68 61 72 64 77 61 72 65 | 2c 20 79 69 65 6c 64 69 |hardware|, yieldi|
|00001140| 6e 67 20 63 6f 72 72 65 | 63 74 65 64 20 6f 75 74 |ng corre|cted out|
|00001150| 70 75 74 2e 20 4f 6e 0d | 74 68 65 20 4d 61 63 69 |put. On.|the Maci|
|00001160| 6e 74 6f 73 68 20 49 49 | 20 56 69 64 65 6f 20 43 |ntosh II| Video C|
|00001170| 61 72 64 20 28 74 68 65 | 20 54 46 42 20 63 61 72 |ard (the| TFB car|
|00001180| 64 29 2c 20 74 68 65 20 | 68 69 67 68 20 65 69 67 |d), the |high eig|
|00001190| 68 74 20 62 69 74 73 20 | 6f 66 20 65 61 63 68 0d |ht bits |of each.|
|000011a0| 63 68 61 6e 6e 65 6c 20 | 61 72 65 20 75 73 65 64 |channel |are used|
|000011b0| 20 74 6f 20 72 65 66 65 | 72 65 6e 63 65 20 74 68 | to refe|rence th|
|000011c0| 65 20 67 61 6d 6d 61 20 | 74 61 62 6c 65 2e 0d 20 |e gamma |table.. |
|000011d0| 0d 54 68 65 72 65 20 61 | 72 65 20 61 20 6e 75 6d |.There a|re a num|
|000011e0| 62 65 72 20 6f 66 20 6d | 69 6e 6f 72 20 73 68 6f |ber of m|inor sho|
|000011f0| 72 74 63 6f 6d 69 6e 67 | 73 20 69 6e 20 74 68 69 |rtcoming|s in thi|
|00001200| 73 20 69 6d 70 6c 65 6d | 65 6e 74 61 74 69 6f 6e |s implem|entation|
|00001210| 2e 20 46 69 72 73 74 2c | 0d 74 68 65 72 65 20 69 |. First,|.there i|
|00001220| 73 20 6e 6f 74 20 61 62 | 73 6f 6c 75 74 65 20 73 |s not ab|solute s|
|00001230| 79 6d 6d 65 74 72 79 20 | 62 65 74 77 65 65 6e 20 |ymmetry |between |
|00001240| 74 68 65 20 53 65 74 45 | 6e 74 72 69 65 73 20 63 |the SetE|ntries c|
|00001250| 6f 6e 74 72 6f 6c 20 63 | 61 6c 6c 2c 20 77 68 69 |ontrol c|all, whi|
|00001260| 63 68 0d 73 65 74 73 20 | 74 68 65 20 43 4c 55 54 |ch.sets |the CLUT|
|00001270| 2c 20 61 6e 64 20 74 68 | 65 20 47 65 74 45 6e 74 |, and th|e GetEnt|
|00001280| 72 69 65 73 20 73 74 61 | 74 75 73 20 63 61 6c 6c |ries sta|tus call|
|00001290| 2c 20 77 68 69 63 68 20 | 72 65 61 64 73 20 74 68 |, which |reads th|
|000012a0| 65 20 43 4c 55 54 0d 68 | 61 72 64 77 61 72 65 2c |e CLUT.h|ardware,|
|000012b0| 20 62 65 63 61 75 73 65 | 20 74 68 65 20 67 61 6d | because| the gam|
|000012c0| 6d 61 20 63 6f 72 72 65 | 63 74 69 6f 6e 20 74 6f |ma corre|ction to|
|000012d0| 6f 6b 20 70 6c 61 63 65 | 20 61 73 20 70 61 72 74 |ok place| as part|
|000012e0| 20 6f 66 20 74 68 65 0d | 53 65 74 45 6e 74 72 69 | of the.|SetEntri|
|000012f0| 65 73 20 63 61 6c 6c 2e | 20 41 6c 73 6f 2c 20 74 |es call.| Also, t|
|00001300| 68 65 20 75 6e 63 6f 72 | 72 65 63 74 65 64 20 76 |he uncor|rected v|
|00001310| 61 6c 75 65 73 20 61 72 | 65 20 67 65 6e 65 72 61 |alues ar|e genera|
|00001320| 6c 6c 79 20 75 6e 72 65 | 63 6f 76 65 72 61 62 6c |lly unre|coverabl|
|00001330| 65 0d 28 61 6c 74 68 6f | 75 67 68 20 61 20 63 6f |e.(altho|ugh a co|
|00001340| 70 79 20 6f 66 20 74 68 | 65 20 61 62 73 6f 6c 75 |py of th|e absolu|
|00001350| 74 65 20 63 6f 6c 6f 72 | 73 20 61 72 65 20 61 6c |te color|s are al|
|00001360| 77 61 79 73 20 61 76 61 | 69 6c 61 62 6c 65 20 69 |ways ava|ilable i|
|00001370| 6e 20 74 68 65 0d 47 44 | 65 76 69 63 65 20 73 74 |n the.GD|evice st|
|00001380| 72 75 63 74 75 72 65 29 | 2e 0d 20 0d 46 69 6e 61 |ructure)|.. .Fina|
|00001390| 6c 6c 79 2c 20 69 74 20 | 69 73 20 6d 6f 73 74 20 |lly, it |is most |
|000013a0| 64 65 73 69 72 61 62 6c | 65 20 74 6f 20 65 78 74 |desirabl|e to ext|
|000013b0| 72 61 63 74 20 6d 6f 72 | 65 20 62 69 74 73 20 61 |ract mor|e bits a|
|000013c0| 73 20 61 6e 20 69 6e 64 | 65 78 20 74 6f 20 74 68 |s an ind|ex to th|
|000013d0| 65 0d 67 61 6d 6d 61 20 | 74 61 62 6c 65 20 74 68 |e.gamma |table th|
|000013e0| 61 6e 20 74 68 65 20 6e | 75 6d 62 65 72 20 6f 66 |an the n|umber of|
|000013f0| 20 62 69 74 73 20 6f 66 | 20 63 6f 6c 6f 72 20 69 | bits of| color i|
|00001400| 6e 66 6f 72 6d 61 74 69 | 6f 6e 20 74 68 61 74 20 |nformati|on that |
|00001410| 77 69 6c 6c 20 62 65 20 | 73 65 74 0d 69 6e 20 74 |will be |set.in t|
|00001420| 68 65 20 43 4c 55 54 2e | 20 20 54 68 69 73 20 77 |he CLUT.| This w|
|00001430| 61 79 2c 20 79 6f 75 20 | 61 76 6f 69 64 20 61 20 |ay, you |avoid a |
|00001440| 6c 6f 73 73 20 6f 66 20 | 63 6f 6c 6f 72 20 72 65 |loss of |color re|
|00001450| 73 6f 6c 75 74 69 6f 6e | 20 61 66 74 65 72 0d 63 |solution| after.c|
|00001460| 6f 72 72 65 63 74 69 6f | 6e 2e 20 46 6f 72 20 65 |orrectio|n. For e|
|00001470| 78 61 6d 70 6c 65 2c 20 | 74 68 65 20 54 46 42 20 |xample, |the TFB |
|00001480| 63 61 72 64 20 68 61 73 | 20 61 6e 20 65 69 67 68 |card has| an eigh|
|00001490| 74 2d 62 69 74 2d 70 65 | 72 2d 63 68 61 6e 6e 65 |t-bit-pe|r-channe|
|000014a0| 6c 20 43 4c 55 54 2c 0d | 62 75 74 20 6f 6e 6c 79 |l CLUT,.|but only|
|000014b0| 20 75 73 65 73 20 74 68 | 65 20 6d 6f 73 74 2d 73 | uses th|e most-s|
|000014c0| 69 67 6e 69 66 69 63 61 | 6e 74 20 65 69 67 68 74 |ignifica|nt eight|
|000014d0| 20 62 69 74 73 20 6f 66 | 20 74 68 65 20 28 31 36 | bits of| the (16|
|000014e0| 2d 62 69 74 29 20 63 68 | 61 6e 6e 65 6c 0d 69 6e |-bit) ch|annel.in|
|000014f0| 66 6f 72 6d 61 74 69 6f | 6e 20 66 6f 72 20 67 61 |formatio|n for ga|
|00001500| 6d 6d 61 20 6c 6f 6f 6b | 75 70 2e 20 41 74 20 6c |mma look|up. At l|
|00001510| 6f 77 65 72 20 69 6e 74 | 65 6e 73 69 74 69 65 73 |ower int|ensities|
|00001520| 2c 20 74 68 65 20 67 61 | 6d 6d 61 20 63 6f 72 72 |, the ga|mma corr|
|00001530| 65 63 74 69 6f 6e 0d 69 | 6e 63 72 65 61 73 65 73 |ection.i|ncreases|
|00001540| 20 74 68 65 20 64 69 73 | 74 61 6e 63 65 20 62 65 | the dis|tance be|
|00001550| 74 77 65 65 6e 20 61 64 | 6a 61 63 65 6e 74 20 76 |tween ad|jacent v|
|00001560| 61 6c 75 65 73 2e 20 20 | 41 73 20 61 20 72 65 73 |alues. |As a res|
|00001570| 75 6c 74 2c 20 6f 6e 20 | 74 68 65 20 54 46 42 0d |ult, on |the TFB.|
|00001580| 63 61 72 64 2c 20 73 6f | 6d 65 20 64 79 6e 61 6d |card, so|me dynam|
|00001590| 69 63 20 72 61 6e 67 65 | 20 69 73 20 6c 6f 73 74 |ic range| is lost|
|000015a0| 20 61 74 20 6c 6f 77 65 | 72 20 69 6e 74 65 6e 73 | at lowe|r intens|
|000015b0| 69 74 69 65 73 2e 20 54 | 68 69 73 20 63 6f 75 6c |ities. T|his coul|
|000015c0| 64 20 62 65 0d 63 6f 72 | 72 65 63 74 65 64 20 62 |d be.cor|rected b|
|000015d0| 79 20 65 78 74 72 61 63 | 74 69 6e 67 20 6e 69 6e |y extrac|ting nin|
|000015e0| 65 20 6f 72 20 74 65 6e | 20 62 69 74 73 20 6f 66 |e or ten| bits of|
|000015f0| 20 63 68 61 6e 6e 65 6c | 20 69 6e 66 6f 72 6d 61 | channel| informa|
|00001600| 74 69 6f 6e 20 72 61 74 | 68 65 72 0d 74 68 61 6e |tion rat|her.than|
|00001610| 20 65 69 67 68 74 20 61 | 6e 64 20 75 73 69 6e 67 | eight a|nd using|
|00001620| 20 61 20 6c 61 72 67 65 | 72 2c 20 67 61 6d 6d 61 | a large|r, gamma|
|00001630| 2d 63 6f 72 72 65 63 74 | 69 6f 6e 20 74 61 62 6c |-correct|ion tabl|
|00001640| 65 2c 20 62 75 74 20 74 | 68 69 73 20 6f 70 74 69 |e, but t|his opti|
|00001650| 6f 6e 20 77 61 73 0d 64 | 65 63 6c 69 6e 65 64 20 |on was.d|eclined |
|00001660| 74 6f 20 72 65 64 75 63 | 65 20 67 61 6d 6d 61 20 |to reduc|e gamma |
|00001670| 74 61 62 6c 65 20 73 69 | 7a 65 2e 0d 20 0d 54 68 |table si|ze.. .Th|
|00001680| 65 20 47 61 6d 6d 61 54 | 62 6c 20 44 61 74 61 20 |e GammaT|bl Data |
|00001690| 53 74 72 75 63 74 75 72 | 65 0d 2d 2d 2d 2d 2d 2d |Structur|e.------|
|000016a0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000016b0| 2d 2d 2d 2d 2d 0d 5b 64 | 67 70 3a 20 54 68 69 73 |-----.[d|gp: This|
|000016c0| 20 73 65 63 74 69 6f 6e | 20 68 61 73 20 6d 61 6e | section| has man|
|000016d0| 79 20 65 72 72 6f 72 73 | 2e 20 49 20 73 75 67 67 |y errors|. I sugg|
|000016e0| 65 73 74 20 79 6f 75 20 | 74 75 72 6e 20 69 6e 73 |est you |turn ins|
|000016f0| 74 65 61 64 20 74 6f 20 | 44 65 73 69 67 6e 69 6e |tead to |Designin|
|00001700| 67 20 43 61 72 64 73 20 | 61 6e 64 20 44 72 69 76 |g Cards |and Driv|
|00001710| 65 72 73 2c 20 33 72 64 | 20 45 64 2e 2c 20 77 68 |ers, 3rd| Ed., wh|
|00001720| 69 63 68 2c 20 66 69 6e | 61 6c 6c 79 2c 20 69 6e |ich, fin|ally, in|
|00001730| 63 6c 75 64 65 73 20 74 | 68 69 73 20 69 6e 66 6f |cludes t|his info|
|00001740| 72 6d 61 74 69 6f 6e 2e | 5d 0d 0d 54 68 65 20 73 |rmation.|]..The s|
|00001750| 74 72 75 63 74 75 72 65 | 20 69 74 73 65 6c 66 20 |tructure| itself |
|00001760| 68 61 73 20 62 65 65 6e | 20 61 20 62 69 74 20 6f |has been| a bit o|
|00001770| 66 20 61 20 6d 79 73 74 | 65 72 79 2c 20 61 73 20 |f a myst|ery, as |
|00001780| 69 74 20 69 73 20 6e 6f | 74 20 64 65 66 69 6e 65 |it is no|t define|
|00001790| 64 20 69 6e 0d 65 69 74 | 68 65 72 20 22 49 6e 73 |d in.eit|her "Ins|
|000017a0| 69 64 65 20 4d 61 63 69 | 6e 74 6f 73 68 20 56 6f |ide Maci|ntosh Vo|
|000017b0| 6c 75 6d 65 20 56 22 20 | 6f 72 20 74 68 65 20 44 |lume V" |or the D|
|000017c0| 65 73 69 67 6e 69 6e 67 | 20 43 61 72 64 73 20 61 |esigning| Cards a|
|000017d0| 6e 64 20 44 72 69 76 65 | 72 73 0d 4d 61 6e 75 61 |nd Drive|rs.Manua|
|000017e0| 6c 2e 20 54 68 69 73 20 | 69 73 20 74 68 65 20 73 |l. This |is the s|
|000017f0| 74 72 75 63 74 75 72 65 | 3a 0d 20 0d 20 20 20 72 |tructure|:. . r|
|00001800| 65 63 6f 72 64 20 47 61 | 6d 6d 61 54 61 62 6c 65 |ecord Ga|mmaTable|
|00001810| 20 6f 66 0d 20 20 20 67 | 56 65 72 73 69 6f 6e 3a | of. g|Version:|
|00001820| 20 69 6e 74 65 67 65 72 | 3b 20 7b 67 74 61 62 20 | integer|; {gtab |
|00001830| 76 65 72 73 69 6f 6e 2c | 20 63 75 72 72 65 6e 74 |version,| current|
|00001840| 6c 79 20 30 7d 0d 20 20 | 20 67 54 79 70 65 3a 20 |ly 0}. | gType: |
|00001850| 69 6e 74 65 67 65 72 3b | 20 7b 64 72 48 77 49 64 |integer;| {drHwId|
|00001860| 20 76 61 6c 75 65 7d 0d | 20 20 20 67 46 6f 72 6d | value}.| gForm|
|00001870| 75 6c 61 53 69 7a 65 3a | 20 69 6e 74 65 67 65 72 |ulaSize:| integer|
|00001880| 3b 20 7b 73 69 7a 65 20 | 6f 66 20 66 6f 72 6d 75 |; {size |of formu|
|00001890| 6c 61 20 64 61 74 61 2c | 20 62 65 6c 6f 77 7d 0d |la data,| below}.|
|000018a0| 20 20 20 67 43 68 61 6e | 43 6e 74 3a 20 69 6e 74 | gChan|Cnt: int|
|000018b0| 65 67 65 72 3b 20 7b 23 | 20 6f 66 20 63 6f 6d 70 |eger; {#| of comp|
|000018c0| 6f 6e 65 6e 74 20 63 68 | 61 6e 6e 65 6c 73 7d 0d |onent ch|annels}.|
|000018d0| 20 20 20 67 44 61 74 61 | 43 6e 74 3a 20 69 6e 74 | gData|Cnt: int|
|000018e0| 65 67 65 72 3b 20 7b 23 | 20 6f 66 20 76 61 6c 75 |eger; {#| of valu|
|000018f0| 65 73 20 70 65 72 20 63 | 68 61 6e 6e 65 6c 7d 0d |es per c|hannel}.|
|00001900| 20 20 20 67 44 61 74 61 | 57 69 64 74 68 3a 20 69 | gData|Width: i|
|00001910| 6e 74 65 67 65 72 3b 20 | 7b 73 69 7a 65 20 6f 66 |nteger; |{size of|
|00001920| 20 64 61 74 61 20 69 6e | 20 74 61 62 6c 65 73 7d | data in| tables}|
|00001930| 0d 20 20 20 7b 67 61 6d | 6d 61 20 63 6f 72 72 65 |. {gam|ma corre|
|00001940| 63 74 69 6f 6e 20 6c 6f | 6f 6b 2d 75 70 20 74 61 |ction lo|ok-up ta|
|00001950| 62 6c 65 73 7d 0d 20 20 | 20 67 46 6f 72 6d 75 6c |bles}. | gFormul|
|00001960| 61 44 61 74 61 3a 20 61 | 72 72 61 79 20 5b 30 2e |aData: a|rray [0.|
|00001970| 2e 20 67 46 6f 72 6d 75 | 6c 61 53 69 7a 65 5d 20 |. gFormu|laSize] |
|00001980| 6f 66 20 62 79 74 65 3b | 0d 20 20 20 7b 64 61 74 |of byte;|. {dat|
|00001990| 61 20 66 6f 72 20 67 61 | 6d 6d 61 20 63 61 6c 63 |a for ga|mma calc|
|000019a0| 75 6c 61 74 69 6f 6e 20 | 66 6f 72 6d 75 6c 61 7d |ulation |formula}|
|000019b0| 0d 20 20 20 67 44 61 74 | 61 3a 20 61 72 72 61 79 |. gDat|a: array|
|000019c0| 20 5b 30 2e 2e 20 67 44 | 61 74 61 43 6e 74 5d 20 | [0.. gD|ataCnt] |
|000019d0| 6f 66 20 62 79 74 65 3b | 0d 20 20 20 65 6e 64 3b |of byte;|. end;|
|000019e0| 0d 20 0d 49 6e 20 74 68 | 69 73 20 73 74 72 75 63 |. .In th|is struc|
|000019f0| 74 75 72 65 2c 20 67 56 | 65 72 73 69 6f 6e 20 72 |ture, gV|ersion r|
|00001a00| 65 70 72 65 73 65 6e 74 | 73 20 74 68 65 20 67 61 |epresent|s the ga|
|00001a10| 6d 6d 61 20 74 61 62 6c | 65 20 66 6f 72 6d 61 74 |mma tabl|e format|
|00001a20| 20 76 65 72 73 69 6f 6e | 2c 0d 77 68 69 63 68 20 | version|,.which |
|00001a30| 69 73 20 30 20 66 6f 72 | 20 61 6c 6c 20 63 75 72 |is 0 for| all cur|
|00001a40| 72 65 6e 74 20 63 61 72 | 64 73 2e 20 20 54 68 65 |rent car|ds. The|
|00001a50| 20 67 54 79 70 65 20 66 | 69 65 6c 64 20 68 6f 6c | gType f|ield hol|
|00001a60| 64 73 20 74 68 65 20 64 | 72 48 77 49 64 20 76 61 |ds the d|rHwId va|
|00001a70| 6c 75 65 0d 66 6f 72 20 | 74 68 69 73 20 62 6f 61 |lue.for |this boa|
|00001a80| 72 64 20 74 6f 20 69 64 | 65 6e 74 69 66 79 20 74 |rd to id|entify t|
|00001a90| 68 65 20 62 6f 61 72 64 | 20 74 68 61 74 20 74 68 |he board| that th|
|00001aa0| 69 73 20 74 61 62 6c 65 | 20 77 61 73 20 6d 65 61 |is table| was mea|
|00001ab0| 73 75 72 65 64 20 66 6f | 72 2e 0d 4e 6f 74 65 20 |sured fo|r..Note |
|00001ac0| 74 68 61 74 20 74 68 69 | 73 20 6d 65 61 6e 73 20 |that thi|s means |
|00001ad0| 74 68 61 74 20 61 20 73 | 69 6e 67 6c 65 20 67 61 |that a s|ingle ga|
|00001ae0| 6d 6d 61 20 74 61 62 6c | 65 20 63 61 6e 27 74 20 |mma tabl|e can't |
|00001af0| 64 69 72 65 63 74 6c 79 | 20 62 65 20 73 68 61 72 |directly| be shar|
|00001b00| 65 64 0d 62 65 74 77 65 | 65 6e 20 74 77 6f 20 64 |ed.betwe|en two d|
|00001b10| 69 66 66 65 72 65 6e 74 | 20 63 61 72 64 73 2c 20 |ifferent| cards, |
|00001b20| 65 76 65 6e 20 69 66 20 | 74 68 65 79 20 62 6f 74 |even if |they bot|
|00001b30| 68 20 68 61 76 65 20 74 | 68 65 20 73 61 6d 65 20 |h have t|he same |
|00001b40| 43 4c 55 54 20 72 65 73 | 70 6f 6e 73 65 0d 63 75 |CLUT res|ponse.cu|
|00001b50| 72 76 65 20 28 77 68 69 | 63 68 20 69 73 20 75 73 |rve (whi|ch is us|
|00001b60| 75 61 6c 6c 79 20 6c 69 | 6e 65 61 72 29 2e 20 20 |ually li|near). |
|00001b70| 54 68 69 73 20 6c 65 74 | 73 20 74 68 65 20 64 61 |This let|s the da|
|00001b80| 74 61 20 69 6e 20 74 68 | 65 20 67 61 6d 6d 61 20 |ta in th|e gamma |
|00001b90| 74 61 62 6c 65 20 62 65 | 0d 69 6e 20 61 6e 20 61 |table be|.in an a|
|00001ba0| 70 70 72 6f 70 72 69 61 | 74 65 20 66 6f 72 6d 20 |ppropria|te form |
|00001bb0| 66 6f 72 20 76 61 72 79 | 69 6e 67 20 68 61 72 64 |for vary|ing hard|
|00001bc0| 77 61 72 65 20 28 74 68 | 61 74 20 69 73 2c 20 61 |ware (th|at is, a|
|00001bd0| 20 63 61 72 64 20 63 6f | 75 6c 64 20 68 61 76 65 | card co|uld have|
|00001be0| 0d 66 6f 75 72 2d 62 69 | 74 2f 63 68 61 6e 6e 65 |.four-bi|t/channe|
|00001bf0| 6c 20 44 41 43 73 20 61 | 6e 64 20 6d 69 67 68 74 |l DACs a|nd might|
|00001c00| 20 70 72 65 66 65 72 20 | 67 61 6d 6d 61 20 64 61 | prefer |gamma da|
|00001c10| 74 61 20 69 6e 20 74 68 | 65 20 72 61 6e 67 65 20 |ta in th|e range |
|00001c20| 24 30 2e 2e 24 46 0d 72 | 61 74 68 65 72 20 74 68 |$0..$F.r|ather th|
|00001c30| 61 6e 20 24 30 2e 2e 24 | 46 46 29 2e 0d 20 0d 67 |an $0..$|FF).. .g|
|00001c40| 46 6f 72 6d 75 6c 61 53 | 69 7a 65 20 64 65 66 69 |FormulaS|ize defi|
|00001c50| 6e 65 73 20 74 68 65 20 | 6e 75 6d 62 65 72 20 6f |nes the |number o|
|00001c60| 66 20 62 79 74 65 73 20 | 6f 63 63 75 70 69 65 64 |f bytes |occupied|
|00001c70| 20 62 79 20 74 68 65 20 | 67 46 6f 72 6d 75 6c 61 | by the |gFormula|
|00001c80| 44 61 74 61 0d 66 69 65 | 6c 64 2e 20 4f 6e 20 41 |Data.fie|ld. On A|
|00001c90| 70 70 6c 65 27 73 20 63 | 75 72 72 65 6e 74 20 76 |pple's c|urrent v|
|00001ca0| 69 64 65 6f 20 63 61 72 | 64 73 2c 20 67 61 6d 6d |ideo car|ds, gamm|
|00001cb0| 61 20 63 6f 72 72 65 63 | 74 69 6f 6e 20 69 73 20 |a correc|tion is |
|00001cc0| 64 6f 6e 65 20 62 79 0d | 6d 6f 64 69 66 79 69 6e |done by.|modifyin|
|00001cd0| 67 20 74 68 65 20 76 61 | 6c 75 65 73 20 6c 6f 61 |g the va|lues loa|
|00001ce0| 64 65 64 20 69 6e 74 6f | 20 74 68 65 20 43 4c 55 |ded into| the CLU|
|00001cf0| 54 20 62 79 20 74 68 65 | 20 53 65 74 45 6e 74 72 |T by the| SetEntr|
|00001d00| 69 65 73 20 63 6f 6e 74 | 72 6f 6c 20 63 61 6c 6c |ies cont|rol call|
|00001d10| 0d 74 6f 20 61 70 70 72 | 6f 78 69 6d 61 74 65 20 |.to appr|oximate |
|00001d20| 6c 69 6e 65 61 72 20 72 | 65 73 70 6f 6e 73 65 20 |linear r|esponse |
|00001d30| 6f 6e 20 74 68 65 20 64 | 69 73 70 6c 61 79 2e 20 |on the d|isplay. |
|00001d40| 20 4f 6e 20 74 68 65 73 | 65 20 73 79 73 74 65 6d | On thes|e system|
|00001d50| 73 2c 20 74 68 65 0d 67 | 61 6d 6d 61 20 63 6f 72 |s, the.g|amma cor|
|00001d60| 72 65 63 74 69 6f 6e 20 | 74 61 62 6c 65 20 61 63 |rection |table ac|
|00001d70| 74 73 20 61 73 20 61 20 | 66 69 6e 61 6c 2c 20 6c |ts as a |final, l|
|00001d80| 6f 6f 6b 2d 75 70 2c 20 | 64 61 74 61 20 74 61 62 |ook-up, |data tab|
|00001d90| 6c 65 2c 20 77 68 69 63 | 68 0d 74 72 61 6e 73 6c |le, whic|h.transl|
|00001da0| 61 74 65 73 20 74 68 65 | 20 72 65 71 75 65 73 74 |ates the| request|
|00001db0| 65 64 20 63 6f 6c 6f 72 | 20 69 6e 74 6f 20 63 6c |ed color| into cl|
|00001dc0| 6f 73 65 73 74 20 61 76 | 61 69 6c 61 62 6c 65 20 |osest av|ailable |
|00001dd0| 6c 69 6e 65 61 72 69 7a | 65 64 20 6c 65 76 65 6c |lineariz|ed level|
|00001de0| 2e 0d 54 68 65 73 65 20 | 67 61 6d 6d 61 20 74 61 |..These |gamma ta|
|00001df0| 62 6c 65 20 76 61 6c 75 | 65 73 20 61 72 65 20 64 |ble valu|es are d|
|00001e00| 65 74 65 72 6d 69 6e 65 | 64 20 65 6d 70 69 72 69 |etermine|d empiri|
|00001e10| 63 61 6c 6c 79 20 62 79 | 20 6d 65 61 73 75 72 69 |cally by| measuri|
|00001e20| 6e 67 20 74 68 65 0d 6f | 75 74 70 75 74 20 6f 66 |ng the.o|utput of|
|00001e30| 20 61 20 63 61 6c 69 62 | 72 61 74 65 64 20 64 69 | a calib|rated di|
|00001e40| 73 70 6c 61 79 2e 0d 20 | 0d 4d 6f 72 65 20 73 6f |splay.. |.More so|
|00001e50| 70 68 69 73 74 69 63 61 | 74 65 64 20 73 79 73 74 |phistica|ted syst|
|00001e60| 65 6d 73 20 6d 61 79 20 | 63 68 6f 6f 73 65 20 61 |ems may |choose a|
|00001e70| 6e 20 61 6c 74 65 72 6e | 61 74 69 76 65 20 74 6f |n altern|ative to|
|00001e80| 20 74 68 69 73 20 73 69 | 6d 70 6c 65 0d 6c 6f 6f | this si|mple.loo|
|00001e90| 6b 2d 75 70 20 6d 65 63 | 68 61 6e 69 73 6d 2e 20 |k-up mec|hanism. |
|00001ea0| 20 46 6f 72 20 69 6e 73 | 74 61 6e 63 65 2c 20 79 | For ins|tance, y|
|00001eb0| 6f 75 20 63 61 6e 20 63 | 61 6c 63 75 6c 61 74 65 |ou can c|alculate|
|00001ec0| 20 67 61 6d 6d 61 20 63 | 6f 72 72 65 63 74 69 6f | gamma c|orrectio|
|00001ed0| 6e 0d 66 61 63 74 6f 72 | 73 20 62 61 73 65 64 20 |n.factor|s based |
|00001ee0| 6f 6e 20 61 20 6d 61 74 | 68 65 6d 61 74 69 63 61 |on a mat|hematica|
|00001ef0| 6c 20 72 65 73 70 6f 6e | 73 65 20 66 75 6e 63 74 |l respon|se funct|
|00001f00| 69 6f 6e 2e 20 42 79 20 | 64 65 66 61 75 6c 74 2c |ion. By |default,|
|00001f10| 20 74 68 65 20 54 46 42 | 0d 63 61 72 64 20 75 73 | the TFB|.card us|
|00001f20| 65 73 20 61 20 73 69 6e | 67 6c 65 20 63 6f 72 72 |es a sin|gle corr|
|00001f30| 65 63 74 69 6f 6e 20 74 | 61 62 6c 65 20 66 6f 72 |ection t|able for|
|00001f40| 20 61 6c 6c 20 74 68 72 | 65 65 20 63 68 61 6e 6e | all thr|ee chann|
|00001f50| 65 6c 73 2e 20 4e 6f 0d | 63 61 6c 63 75 6c 61 74 |els. No.|calculat|
|00001f60| 69 6f 6e 73 20 61 72 65 | 20 70 65 72 66 6f 72 6d |ions are| perform|
|00001f70| 65 64 20 6f 6e 20 74 68 | 65 20 69 6e 63 6f 6d 69 |ed on th|e incomi|
|00001f80| 6e 67 20 63 6f 6c 6f 72 | 20 74 61 62 6c 65 20 6f |ng color| table o|
|00001f90| 74 68 65 72 20 74 68 61 | 6e 20 73 69 6d 70 6c 65 |ther tha|n simple|
|00001fa0| 0d 6c 6f 6f 6b 75 70 2e | 20 20 43 61 72 64 73 20 |.lookup.| Cards |
|00001fb0| 63 61 6e 20 72 65 6d 65 | 6d 62 65 72 20 74 68 65 |can reme|mber the|
|00001fc0| 20 73 70 65 63 69 66 69 | 63 20 6d 6f 6e 69 74 6f | specifi|c monito|
|00001fd0| 72 20 63 6f 6e 66 69 67 | 75 72 61 74 69 6f 6e 20 |r config|uration |
|00001fe0| 61 74 20 74 68 65 0d 62 | 65 67 69 6e 6e 69 6e 67 |at the.b|eginning|
|00001ff0| 20 6f 66 20 74 68 65 20 | 67 46 6f 72 6d 75 6c 61 | of the |gFormula|
|00002000| 44 61 74 61 20 66 69 65 | 6c 64 2c 20 61 6c 6c 6f |Data fie|ld, allo|
|00002010| 77 69 6e 67 20 69 74 20 | 74 6f 20 69 64 65 6e 74 |wing it |to ident|
|00002020| 69 66 79 20 61 6e 64 20 | 75 73 65 20 6f 6e 6c 79 |ify and |use only|
|00002030| 0d 67 61 6d 6d 61 20 74 | 61 62 6c 65 73 20 64 65 |.gamma t|ables de|
|00002040| 76 65 6c 6f 70 65 64 20 | 66 6f 72 20 74 68 65 20 |veloped |for the |
|00002050| 63 75 72 72 65 6e 74 6c | 79 20 63 6f 6e 6e 65 63 |currentl|y connec|
|00002060| 74 65 64 20 6d 6f 6e 69 | 74 6f 72 2e 0d 20 0d 67 |ted moni|tor.. .g|
|00002070| 43 68 61 6e 43 6e 74 20 | 69 73 20 74 68 65 20 6e |ChanCnt |is the n|
|00002080| 75 6d 62 65 72 20 6f 66 | 20 6c 6f 6f 6b 2d 75 70 |umber of| look-up|
|00002090| 20 74 61 62 6c 65 73 20 | 69 6e 20 67 44 61 74 61 | tables |in gData|
|000020a0| 2c 20 62 65 6c 6f 77 2e | 20 49 66 20 74 68 65 72 |, below.| If ther|
|000020b0| 65 20 69 73 20 6d 6f 72 | 65 0d 74 68 61 6e 20 6f |e is mor|e.than o|
|000020c0| 6e 65 20 63 68 61 6e 6e | 65 6c 20 6f 66 20 67 61 |ne chann|el of ga|
|000020d0| 6d 6d 61 20 63 6f 72 72 | 65 63 74 69 6f 6e 20 64 |mma corr|ection d|
|000020e0| 61 74 61 2c 20 74 68 65 | 6e 20 74 68 65 20 52 2c |ata, the|n the R,|
|000020f0| 20 47 2c 20 61 6e 64 20 | 42 20 74 61 62 6c 65 73 | G, and |B tables|
|00002100| 0d 66 6f 6c 6c 6f 77 20 | 65 61 63 68 20 6f 74 68 |.follow |each oth|
|00002110| 65 72 2c 20 72 65 73 70 | 65 63 74 69 76 65 6c 79 |er, resp|ectively|
|00002120| 2c 20 61 74 20 74 68 65 | 20 65 6e 64 20 6f 66 20 |, at the| end of |
|00002130| 74 68 65 20 73 74 72 75 | 63 74 75 72 65 2e 0d 20 |the stru|cture.. |
|00002140| 0d 67 44 61 74 61 43 6e | 74 20 69 73 20 74 68 65 |.gDataCn|t is the|
|00002150| 20 6e 75 6d 62 65 72 20 | 6f 66 20 64 69 73 63 72 | number |of discr|
|00002160| 65 74 65 20 6c 6f 6f 6b | 2d 75 70 20 76 61 6c 75 |ete look|-up valu|
|00002170| 65 73 20 69 6e 63 6c 75 | 64 65 64 20 69 6e 20 65 |es inclu|ded in e|
|00002180| 61 63 68 20 6f 66 20 74 | 68 65 0d 63 68 61 6e 6e |ach of t|he.chann|
|00002190| 65 6c 27 73 20 63 6f 72 | 72 65 63 74 69 6f 6e 20 |el's cor|rection |
|000021a0| 74 61 62 6c 65 2e 20 20 | 49 74 20 69 73 20 61 6c |table. |It is al|
|000021b0| 77 61 79 73 20 65 71 75 | 61 6c 20 74 6f 20 32 67 |ways equ|al to 2g|
|000021c0| 44 61 74 61 57 69 64 74 | 68 20 5b 64 67 70 3a 20 |DataWidt|h [dgp: |
|000021d0| 49 20 74 68 69 6e 6b 20 | 74 68 65 79 20 6d 65 61 |I think |they mea|
|000021e0| 6e 74 20 74 6f 20 73 61 | 79 20 31 3c 3c 67 44 61 |nt to sa|y 1<<gDa|
|000021f0| 74 61 57 69 64 74 68 5d | 2c 20 62 75 74 20 72 65 |taWidth]|, but re|
|00002200| 66 65 72 73 20 74 6f 20 | 6e 75 6d 62 65 72 20 6f |fers to |number o|
|00002210| 66 20 62 79 74 65 73 20 | 74 68 61 74 20 74 68 69 |f bytes |that thi|
|00002220| 73 20 63 68 61 6e 6e 65 | 6c 27 73 20 64 61 74 61 |s channe|l's data|
|00002230| 20 6f 63 63 75 70 69 65 | 73 2e 20 0d 20 0d 67 44 | occupie|s. . .gD|
|00002240| 61 74 61 57 69 64 74 68 | 20 64 65 73 63 72 69 62 |ataWidth| describ|
|00002250| 65 73 20 74 68 65 20 6e | 75 6d 62 65 72 20 6f 66 |es the n|umber of|
|00002260| 20 73 69 67 6e 69 66 69 | 63 61 6e 74 20 62 69 74 | signifi|cant bit|
|00002270| 73 20 6f 66 20 69 6e 66 | 6f 72 6d 61 74 69 6f 6e |s of inf|ormation|
|00002280| 0d 61 76 61 69 6c 61 62 | 6c 65 20 69 6e 20 65 61 |.availab|le in ea|
|00002290| 63 68 20 65 6e 74 72 79 | 20 69 6e 20 61 20 63 68 |ch entry| in a ch|
|000022a0| 61 6e 6e 65 6c 27 73 20 | 63 6f 72 72 65 63 74 69 |annel's |correcti|
|000022b0| 6f 6e 20 74 61 62 6c 65 | 2e 20 54 68 65 20 64 61 |on table|. The da|
|000022c0| 74 61 20 61 6c 77 61 79 | 73 0d 61 70 70 65 61 72 |ta alway|s.appear|
|000022d0| 73 20 61 73 20 67 44 61 | 74 61 57 69 64 74 68 20 |s as gDa|taWidth |
|000022e0| 62 69 74 73 2c 20 72 69 | 67 68 74 2d 6a 75 73 74 |bits, ri|ght-just|
|000022f0| 69 66 69 65 64 20 69 6e | 20 61 20 66 69 65 6c 64 |ified in| a field|
|00002300| 20 74 68 61 74 20 69 73 | 20 74 68 65 20 6e 65 78 | that is| the nex|
|00002310| 74 0d 6c 61 72 67 65 72 | 20 6e 75 6d 62 65 72 20 |t.larger| number |
|00002320| 6f 66 20 62 79 74 65 73 | 20 74 68 61 6e 20 67 44 |of bytes| than gD|
|00002330| 61 74 61 57 69 64 74 68 | 2e 20 20 42 65 63 61 75 |ataWidth|. Becau|
|00002340| 73 65 20 69 74 20 69 73 | 20 72 61 72 65 20 74 6f |se it is| rare to|
|00002350| 20 68 61 76 65 0d 64 65 | 76 69 63 65 73 20 77 69 | have.de|vices wi|
|00002360| 74 68 20 6d 6f 72 65 20 | 74 68 61 6e 20 65 69 67 |th more |than eig|
|00002370| 68 74 20 62 69 74 73 20 | 6f 66 20 43 4c 55 54 20 |ht bits |of CLUT |
|00002380| 72 65 73 6f 6c 75 74 69 | 6f 6e 2c 20 76 69 72 74 |resoluti|on, virt|
|00002390| 75 61 6c 6c 79 20 61 6c | 6c 0d 64 65 76 69 63 65 |ually al|l.device|
|000023a0| 73 20 70 61 63 6b 20 74 | 68 65 69 72 20 63 6f 72 |s pack t|heir cor|
|000023b0| 72 65 63 74 69 6f 6e 20 | 64 61 74 61 20 69 6e 74 |rection |data int|
|000023c0| 6f 20 62 79 74 65 73 2e | 0d 20 0d 67 44 61 74 61 |o bytes.|. .gData|
|000023d0| 20 69 73 20 61 63 74 75 | 61 6c 20 63 6f 72 72 65 | is actu|al corre|
|000023e0| 63 74 69 6f 6e 20 74 61 | 62 6c 65 20 64 61 74 61 |ction ta|ble data|
|000023f0| 2e 20 49 66 20 74 68 65 | 72 65 20 69 73 20 6d 6f |. If the|re is mo|
|00002400| 72 65 20 74 68 61 6e 20 | 6f 6e 65 20 63 68 61 6e |re than |one chan|
|00002410| 6e 65 6c 27 73 0d 69 6e | 66 6f 72 6d 61 74 69 6f |nel's.in|formatio|
|00002420| 6e 2c 20 65 61 63 68 20 | 74 61 62 6c 65 20 66 6f |n, each |table fo|
|00002430| 6c 6c 6f 77 73 20 74 68 | 65 20 6e 65 78 74 20 69 |llows th|e next i|
|00002440| 6e 20 52 2c 20 47 2c 20 | 42 20 6f 72 64 65 72 2e |n R, G, |B order.|
|00002450| 20 54 68 65 20 73 74 61 | 6e 64 61 72 64 0d 74 61 | The sta|ndard.ta|
|00002460| 62 6c 65 73 20 69 6e 63 | 6c 75 64 65 64 20 69 6e |bles inc|luded in|
|00002470| 20 41 70 70 6c 65 27 73 | 20 64 72 69 76 65 72 20 | Apple's| driver |
|00002480| 68 61 76 65 20 6f 6e 6c | 79 20 6f 6e 65 20 74 61 |have onl|y one ta|
|00002490| 62 6c 65 2c 20 77 68 69 | 63 68 20 69 73 20 61 70 |ble, whi|ch is ap|
|000024a0| 70 6c 69 65 64 20 74 6f | 0d 61 6c 6c 20 74 68 72 |plied to|.all thr|
|000024b0| 65 65 20 6f 75 74 70 75 | 74 20 63 68 61 6e 6e 65 |ee outpu|t channe|
|000024c0| 6c 73 2e 20 20 42 65 63 | 61 75 73 65 20 50 61 73 |ls. Bec|ause Pas|
|000024d0| 63 61 6c 20 63 61 6e 6e | 6f 74 20 65 78 70 72 65 |cal cann|ot expre|
|000024e0| 73 73 20 76 61 72 69 61 | 62 6c 65 20 73 69 7a 65 |ss varia|ble size|
|000024f0| 0d 66 69 65 6c 64 73 20 | 69 6e 20 72 65 63 6f 72 |.fields |in recor|
|00002500| 64 20 73 74 72 75 63 74 | 75 72 65 73 2c 20 74 68 |d struct|ures, th|
|00002510| 65 20 69 6e 64 65 70 65 | 6e 64 65 6e 74 20 63 68 |e indepe|ndent ch|
|00002520| 61 6e 6e 65 6c 73 20 61 | 72 65 20 6e 6f 74 20 69 |annels a|re not i|
|00002530| 6e 64 69 76 69 64 75 61 | 6c 6c 79 0d 6e 61 6d 65 |ndividua|lly.name|
|00002540| 64 2e 0d 20 0d 22 67 61 | 6d 61 22 20 52 65 73 6f |d.. ."ga|ma" Reso|
|00002550| 75 72 63 65 20 46 6f 72 | 6d 61 74 0d 2d 2d 2d 2d |urce For|mat.----|
|00002560| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00002570| 2d 2d 0d 49 6e 20 61 64 | 64 69 74 69 6f 6e 20 74 |--.In ad|dition t|
|00002580| 6f 20 74 68 65 20 52 41 | 4d 20 64 61 74 61 20 73 |o the RA|M data s|
|00002590| 74 72 75 63 74 75 72 65 | 20 66 6f 72 20 67 61 6d |tructure| for gam|
|000025a0| 6d 61 20 74 61 62 6c 65 | 73 20 63 6f 76 65 72 65 |ma table|s covere|
|000025b0| 64 20 61 62 6f 76 65 2c | 0d 74 68 65 72 65 20 69 |d above,|.there i|
|000025c0| 73 20 61 20 73 74 61 6e | 64 61 72 64 20 72 65 73 |s a stan|dard res|
|000025d0| 6f 75 72 63 65 20 66 6f | 72 6d 61 74 20 66 6f 72 |ource fo|rmat for|
|000025e0| 20 67 61 6d 6d 61 20 74 | 61 62 6c 65 20 72 65 73 | gamma t|able res|
|000025f0| 6f 75 72 63 65 73 2e 20 | 20 4c 69 6b 65 20 6d 61 |ources. | Like ma|
|00002600| 6e 79 0d 6f 74 68 65 72 | 20 72 65 73 6f 75 72 63 |ny.other| resourc|
|00002610| 65 20 74 65 6d 70 6c 61 | 74 65 73 2c 20 74 68 65 |e templa|tes, the|
|00002620| 20 67 61 6d 6d 61 20 73 | 74 72 75 63 74 75 72 65 | gamma s|tructure|
|00002630| 20 69 73 20 61 6e 20 69 | 6d 61 67 65 20 6f 66 20 | is an i|mage of |
|00002640| 74 68 65 20 52 41 4d 20 | 66 6f 72 6d 0d 73 74 6f |the RAM |form.sto|
|00002650| 72 65 64 20 69 6e 20 72 | 65 73 6f 75 72 63 65 20 |red in r|esource |
|00002660| 66 6f 72 6d 61 74 2e 20 | 54 68 65 72 65 20 61 72 |format. |There ar|
|00002670| 65 20 6e 6f 20 63 68 61 | 6e 67 65 73 2e 0d 20 0d |e no cha|nges.. .|
|00002680| 55 73 69 6e 67 20 47 61 | 6d 6d 61 20 43 6f 72 72 |Using Ga|mma Corr|
|00002690| 65 63 74 69 6f 6e 0d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |ection.-|--------|
|000026a0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 0d 47 61 |--------|-----.Ga|
|000026b0| 6d 6d 61 20 63 6f 72 72 | 65 63 74 69 6f 6e 20 69 |mma corr|ection i|
|000026c0| 73 20 61 6c 77 61 79 73 | 20 61 70 70 6c 69 65 64 |s always| applied|
|000026d0| 20 62 79 20 74 68 65 20 | 54 46 42 20 76 69 64 65 | by the |TFB vide|
|000026e0| 6f 20 64 72 69 76 65 72 | 2e 20 41 74 20 64 72 69 |o driver|. At dri|
|000026f0| 76 65 72 20 6f 70 65 6e | 0d 74 69 6d 65 2c 20 74 |ver open|.time, t|
|00002700| 68 65 20 64 72 69 76 65 | 72 20 69 73 20 75 73 75 |he drive|r is usu|
|00002710| 61 6c 6c 79 20 69 6e 69 | 74 69 61 6c 69 7a 65 64 |ally ini|tialized|
|00002720| 20 77 69 74 68 20 61 20 | 6c 69 6e 65 61 72 20 28 | with a |linear (|
|00002730| 6e 6f 6e 63 6f 72 72 65 | 63 74 69 6e 67 29 0d 67 |noncorre|cting).g|
|00002740| 61 6d 6d 61 20 74 61 62 | 6c 65 2e 20 20 57 68 65 |amma tab|le. Whe|
|00002750| 6e 20 5f 49 6e 69 74 47 | 72 61 66 20 69 73 20 63 |n _InitG|raf is c|
|00002760| 61 6c 6c 65 64 2c 20 74 | 68 65 20 22 73 63 72 6e |alled, t|he "scrn|
|00002770| 22 20 73 63 72 65 65 6e | 20 63 6f 6e 66 69 67 75 |" screen| configu|
|00002780| 72 61 74 69 6f 6e 0d 72 | 65 73 6f 75 72 63 65 20 |ration.r|esource |
|00002790| 69 73 20 72 65 61 64 20 | 66 72 6f 6d 20 74 68 65 |is read |from the|
|000027a0| 20 53 79 73 74 65 6d 20 | 66 69 6c 65 2e 20 54 68 | System |file. Th|
|000027b0| 69 73 20 72 65 73 6f 75 | 72 63 65 20 28 64 65 73 |is resou|rce (des|
|000027c0| 63 72 69 62 65 64 20 69 | 6e 20 22 49 6e 73 69 64 |cribed i|n "Insid|
|000027d0| 65 0d 4d 61 63 69 6e 74 | 6f 73 68 20 56 6f 6c 75 |e.Macint|osh Volu|
|000027e0| 6d 65 20 56 22 29 20 69 | 6e 63 6c 75 64 65 73 20 |me V") i|ncludes |
|000027f0| 69 6e 66 6f 72 6d 61 74 | 69 6f 6e 20 61 62 6f 75 |informat|ion abou|
|00002800| 74 20 74 68 65 20 73 69 | 7a 65 20 61 6e 64 20 6f |t the si|ze and o|
|00002810| 72 69 65 6e 74 61 74 69 | 6f 6e 0d 6f 66 20 74 68 |rientati|on.of th|
|00002820| 65 20 64 69 66 66 65 72 | 65 6e 74 20 6d 6f 6e 69 |e differ|ent moni|
|00002830| 74 6f 72 73 20 63 6f 6e | 66 69 67 75 72 65 64 20 |tors con|figured |
|00002840| 69 6e 74 6f 20 74 68 65 | 20 73 79 73 74 65 6d 2c |into the| system,|
|00002850| 20 69 6e 63 6c 75 64 69 | 6e 67 20 74 68 65 69 72 | includi|ng their|
|00002860| 20 6c 61 73 74 0d 76 69 | 64 65 6f 20 6d 6f 64 65 | last.vi|deo mode|
|00002870| 20 28 70 69 78 65 6c 73 | 69 7a 65 29 2c 20 63 6f | (pixels|ize), co|
|00002880| 6c 6f 72 20 74 61 62 6c | 65 2c 20 61 6e 64 20 67 |lor tabl|e, and g|
|00002890| 61 6d 6d 61 20 74 61 62 | 6c 65 2e 0d 20 0d 49 66 |amma tab|le.. .If|
|000028a0| 20 74 68 65 72 65 20 69 | 73 20 6e 6f 20 22 67 61 | there i|s no "ga|
|000028b0| 6d 61 22 20 72 65 73 6f | 75 72 63 65 20 49 44 20 |ma" reso|urce ID |
|000028c0| 73 70 65 63 69 66 69 65 | 64 2c 20 6f 72 20 74 68 |specifie|d, or th|
|000028d0| 65 20 73 70 65 63 69 66 | 69 65 64 20 49 44 20 69 |e specif|ied ID i|
|000028e0| 73 20 6e 6f 74 0d 70 72 | 65 73 65 6e 74 2c 20 74 |s not.pr|esent, t|
|000028f0| 68 65 6e 20 61 20 64 65 | 66 61 75 6c 74 20 67 61 |hen a de|fault ga|
|00002900| 6d 6d 61 20 74 61 62 6c | 65 2c 20 22 67 61 6d 61 |mma tabl|e, "gama|
|00002910| 22 20 3d 30 20 69 73 20 | 6c 6f 61 64 65 64 20 66 |" =0 is |loaded f|
|00002920| 72 6f 6d 20 74 68 65 20 | 53 79 73 74 65 6d 0d 66 |rom the |System.f|
|00002930| 69 6c 65 20 61 6e 64 20 | 75 73 65 64 20 28 74 68 |ile and |used (th|
|00002940| 69 73 20 69 73 20 74 68 | 65 20 74 61 62 6c 65 20 |is is th|e table |
|00002950| 63 61 6c 63 75 6c 61 74 | 65 64 20 66 6f 72 20 74 |calculat|ed for t|
|00002960| 68 65 20 54 46 42 20 63 | 61 72 64 29 2e 20 49 66 |he TFB c|ard). If|
|00002970| 20 74 68 65 0d 73 70 65 | 63 69 66 69 65 64 20 72 | the.spe|cified r|
|00002980| 65 73 6f 75 72 63 65 20 | 69 73 20 66 6f 75 6e 64 |esource |is found|
|00002990| 2c 20 74 68 65 6e 20 74 | 68 65 20 61 70 70 72 6f |, then t|he appro|
|000029a0| 70 72 69 61 74 65 20 72 | 65 73 6f 75 72 63 65 20 |priate r|esource |
|000029b0| 69 73 20 6c 6f 61 64 65 | 64 2c 20 61 6e 64 0d 61 |is loade|d, and.a|
|000029c0| 20 63 6f 6e 74 72 6f 6c | 20 63 61 6c 6c 20 69 73 | control| call is|
|000029d0| 20 69 73 73 75 65 64 20 | 74 6f 20 74 68 65 20 64 | issued |to the d|
|000029e0| 72 69 76 65 72 20 74 6f | 20 6d 61 6b 65 20 74 68 |river to| make th|
|000029f0| 69 73 20 74 68 65 20 63 | 75 72 72 65 6e 74 20 67 |is the c|urrent g|
|00002a00| 61 6d 6d 61 0d 74 61 62 | 6c 65 2e 20 55 6e 66 6f |amma.tab|le. Unfo|
|00002a10| 72 74 75 6e 61 74 65 6c | 79 2c 20 74 68 65 72 65 |rtunatel|y, there|
|00002a20| 20 69 73 20 63 75 72 72 | 65 6e 74 6c 79 20 6e 6f | is curr|ently no|
|00002a30| 20 74 6f 6f 6c 20 74 6f | 20 73 65 74 20 74 68 65 | tool to| set the|
|00002a40| 20 22 67 61 6d 61 22 20 | 49 44 2c 0d 73 68 6f 72 | "gama" |ID,.shor|
|00002a50| 74 20 6f 66 20 6d 6f 64 | 69 66 79 69 6e 67 20 74 |t of mod|ifying t|
|00002a60| 68 65 20 22 73 63 72 6e | 22 20 72 65 73 6f 75 72 |he "scrn|" resour|
|00002a70| 63 65 20 64 69 72 65 63 | 74 6c 79 2e 0d 20 0d 54 |ce direc|tly.. .T|
|00002a80| 6f 20 66 61 63 69 6c 69 | 74 61 74 65 20 74 68 65 |o facili|tate the|
|00002a90| 20 75 73 65 20 6f 66 20 | 74 68 65 20 67 61 6d 6d | use of |the gamm|
|00002aa0| 61 20 74 61 62 6c 65 2c | 20 74 68 65 72 65 20 61 |a table,| there a|
|00002ab0| 72 65 20 74 77 6f 20 63 | 61 6c 6c 73 20 69 6e 20 |re two c|alls in |
|00002ac0| 74 68 65 0d 73 74 61 6e | 64 61 72 64 2c 20 76 69 |the.stan|dard, vi|
|00002ad0| 64 65 6f 2d 64 72 69 76 | 65 72 20 72 6f 75 74 69 |deo-driv|er routi|
|00002ae0| 6e 65 73 20 74 68 61 74 | 20 73 65 74 20 74 68 65 |nes that| set the|
|00002af0| 20 67 61 6d 6d 61 20 74 | 61 62 6c 65 20 28 63 6f | gamma t|able (co|
|00002b00| 6e 74 72 6f 6c 20 63 61 | 6c 6c 20 34 2c 0d 53 65 |ntrol ca|ll 4,.Se|
|00002b10| 74 47 61 6d 6d 61 29 20 | 61 6e 64 20 72 65 74 72 |tGamma) |and retr|
|00002b20| 69 65 76 65 20 74 68 65 | 20 70 6f 69 6e 74 65 72 |ieve the| pointer|
|00002b30| 20 74 6f 20 74 68 65 20 | 63 75 72 72 65 6e 74 20 | to the |current |
|00002b40| 67 61 6d 6d 61 20 74 61 | 62 6c 65 20 28 73 74 61 |gamma ta|ble (sta|
|00002b50| 74 75 73 20 63 61 6c 6c | 0d 36 20 5b 64 67 70 3a |tus call|.6 [dgp:|
|00002b60| 20 6f 6f 70 73 2c 20 74 | 68 65 79 20 6d 65 61 6e | oops, t|hey mean|
|00002b70| 20 38 5d 20 6f 6e 20 54 | 46 42 20 72 65 76 20 32 | 8] on T|FB rev 2|
|00002b80| 20 64 72 69 76 65 72 73 | 20 61 6e 64 20 75 70 29 | drivers| and up)|
|00002b90| 2e 20 54 68 65 73 65 20 | 63 61 6c 6c 73 20 73 69 |. These |calls si|
|00002ba0| 6d 70 6c 79 20 74 61 6b | 65 20 61 6e 64 20 72 65 |mply tak|e and re|
|00002bb0| 74 75 72 6e 20 61 20 70 | 6f 69 6e 74 65 72 20 74 |turn a p|ointer t|
|00002bc0| 6f 20 61 20 47 61 6d 6d | 61 54 62 6c 20 73 74 72 |o a Gamm|aTbl str|
|00002bd0| 75 63 74 75 72 65 2e 0d | 20 0d 20 0d 43 6f 70 79 |ucture..| . .Copy|
|00002be0| 72 69 67 68 74 20 31 39 | 39 31 20 41 70 70 6c 65 |right 19|91 Apple|
|00002bf0| 20 43 6f 6d 70 75 74 65 | 72 2c 20 49 6e 63 2e 0d | Compute|r, Inc..|
|00002c00| 0d 0d 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |..******|********|
|00002c10| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00002c20| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00002c30| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00002c40| 2a 2a 2a 2a 0d 57 72 69 | 74 74 65 6e 20 26 20 73 |****.Wri|tten & s|
|00002c50| 65 6e 74 20 74 6f 20 41 | 70 70 6c 65 3a 20 4a 75 |ent to A|pple: Ju|
|00002c60| 6c 79 20 32 34 2c 20 31 | 39 38 39 0d 52 65 76 69 |ly 24, 1|989.Revi|
|00002c70| 73 65 64 3a 20 4a 61 6e | 75 61 72 79 20 37 2c 20 |sed: Jan|uary 7, |
|00002c80| 31 39 39 33 0d 0d 49 20 | 61 6d 20 77 72 69 74 69 |1993..I |am writi|
|00002c90| 6e 67 20 74 6f 20 72 65 | 70 6f 72 74 20 73 6f 6d |ng to re|port som|
|00002ca0| 65 20 65 72 72 6f 72 73 | 20 69 6e 20 74 68 65 20 |e errors| in the |
|00002cb0| 6f 74 68 65 72 77 69 73 | 65 20 68 65 6c 70 66 75 |otherwis|e helpfu|
|00002cc0| 6c 20 64 6f 63 75 6d 65 | 6e 74 3a 0d 22 47 72 61 |l docume|nt:."Gra|
|00002cd0| 79 73 63 61 6c 65 20 49 | 6e 66 6f 72 6d 61 74 69 |yscale I|nformati|
|00002ce0| 6f 6e 22 20 28 52 65 76 | 2e 20 32 33 20 41 70 72 |on" (Rev|. 23 Apr|
|00002cf0| 69 6c 20 27 38 39 29 20 | 69 6e 20 54 65 63 68 20 |il '89) |in Tech |
|00002d00| 49 6e 66 6f 2e 0d 0d 30 | 2e 20 22 41 20 71 75 69 |Info...0|. "A qui|
|00002d10| 63 6b 20 61 6e 64 20 65 | 61 73 79 20 77 61 79 20 |ck and e|asy way |
|00002d20| 74 6f 20 64 6f 20 74 68 | 69 73 20 69 73 20 74 6f |to do th|is is to|
|00002d30| 20 70 61 73 73 20 2d 31 | 20 74 6f 20 74 68 65 20 | pass -1| to the |
|00002d40| 53 65 74 47 61 6d 6d 61 | 20 43 6f 6e 74 72 6f 6c |SetGamma| Control|
|00002d50| 20 70 61 72 61 6d 65 74 | 65 72 20 62 6c 6f 63 6b | paramet|er block|
|00002d60| 20 61 73 20 74 68 65 20 | 6e 65 77 20 74 61 62 6c | as the |new tabl|
|00002d70| 65 20 61 64 64 72 65 73 | 73 2e 22 20 20 41 63 63 |e addres|s." Acc|
|00002d80| 6f 72 64 69 6e 67 20 74 | 6f 20 44 65 73 69 67 6e |ording t|o Design|
|00002d90| 69 6e 67 20 43 61 72 64 | 73 20 26 20 44 72 69 76 |ing Card|s & Driv|
|00002da0| 65 72 73 2c 20 33 72 64 | 20 45 64 2e 2c 20 77 65 |ers, 3rd| Ed., we|
|00002db0| 20 73 68 6f 75 6c 64 20 | 70 61 73 73 20 4e 55 4c | should |pass NUL|
|00002dc0| 4c 2c 20 6e 6f 74 20 2d | 31 2e 0d 0d 31 2e 20 49 |L, not -|1...1. I|
|00002dd0| 6e 20 74 68 65 20 6e 65 | 78 74 20 74 6f 20 6c 61 |n the ne|xt to la|
|00002de0| 73 74 20 6c 69 6e 65 2c | 20 69 74 20 73 61 79 73 |st line,| it says|
|00002df0| 20 74 68 61 74 20 47 65 | 74 47 61 6d 6d 61 20 69 | that Ge|tGamma i|
|00002e00| 73 20 22 28 73 74 61 74 | 75 73 20 63 61 6c 6c 20 |s "(stat|us call |
|00002e10| 36 20 6f 6e 20 54 46 42 | 20 72 65 76 20 32 20 64 |6 on TFB| rev 2 d|
|00002e20| 72 69 76 65 72 73 20 61 | 6e 64 20 75 70 29 22 2e |rivers a|nd up)".|
|00002e30| 20 54 68 69 73 20 69 73 | 20 77 72 6f 6e 67 2e 20 | This is| wrong. |
|00002e40| 54 68 65 20 4d 50 57 20 | 68 65 61 64 65 72 20 66 |The MPW |header f|
|00002e50| 69 6c 65 20 56 69 64 65 | 6f 2e 68 20 63 6f 72 72 |ile Vide|o.h corr|
|00002e60| 65 63 74 6c 79 20 64 65 | 66 69 6e 65 73 20 63 73 |ectly de|fines cs|
|00002e70| 63 47 65 74 47 61 6d 6d | 61 20 3d 20 38 2e 20 0d |cGetGamm|a = 8. .|
|00002e80| 0d 32 2e 20 54 68 65 20 | 65 78 70 6c 61 6e 61 74 |.2. The |explanat|
|00002e90| 69 6f 6e 20 6f 66 20 67 | 44 61 74 61 43 6e 74 20 |ion of g|DataCnt |
|00002ea0| 69 73 20 77 72 6f 6e 67 | 2e 20 22 49 74 20 69 73 |is wrong|. "It is|
|00002eb0| 20 61 6c 77 61 79 73 20 | 65 71 75 61 6c 20 74 6f | always |equal to|
|00002ec0| 20 32 67 44 61 74 61 57 | 69 64 74 68 2e 2e 2e 22 | 2gDataW|idth..."|
|00002ed0| 20 50 72 65 73 75 6d 61 | 62 6c 79 20 69 74 20 77 | Presuma|bly it w|
|00002ee0| 61 73 20 6d 65 61 6e 74 | 20 74 6f 20 73 61 79 20 |as meant| to say |
|00002ef0| 32 5e 67 44 61 74 61 57 | 69 64 74 68 20 6f 72 20 |2^gDataW|idth or |
|00002f00| 31 3c 3c 67 44 61 74 61 | 57 69 64 74 68 2e 20 48 |1<<gData|Width. H|
|00002f10| 6f 77 65 76 65 72 2c 20 | 69 73 20 74 68 69 73 20 |owever, |is this |
|00002f20| 72 65 61 6c 6c 79 20 74 | 72 75 65 3f 20 54 68 65 |really t|rue? The|
|00002f30| 72 65 20 69 73 20 61 20 | 76 69 64 65 6f 20 63 61 |re is a |video ca|
|00002f40| 72 64 20 6f 6e 20 74 68 | 65 20 6d 61 72 6b 65 74 |rd on th|e market|
|00002f50| 20 6e 6f 77 20 77 69 74 | 68 20 39 2d 62 69 74 20 | now wit|h 9-bit |
|00002f60| 64 61 63 73 2e 20 44 6f | 65 73 20 69 74 20 63 6f |dacs. Do|es it co|
|00002f70| 6e 66 6f 72 6d 20 74 6f | 20 74 68 69 73 20 72 75 |nform to| this ru|
|00002f80| 6c 65 3f 0d 0d 33 2e 20 | 41 6e 6f 74 68 65 72 20 |le?..3. |Another |
|00002f90| 65 72 72 6f 72 20 69 6e | 20 74 68 65 20 73 61 6d |error in| the sam|
|00002fa0| 65 20 70 61 72 61 67 72 | 61 70 68 3a 20 22 54 68 |e paragr|aph: "Th|
|00002fb0| 65 20 64 61 74 61 20 61 | 6c 77 61 79 73 20 61 70 |e data a|lways ap|
|00002fc0| 70 65 61 72 73 20 2e 2e | 2e 20 69 6e 20 61 20 66 |pears ..|. in a f|
|00002fd0| 69 65 6c 64 20 74 68 61 | 74 20 69 73 20 74 68 65 |ield tha|t is the|
|00002fe0| 20 6e 65 78 74 20 6c 61 | 72 67 65 72 20 6e 75 6d | next la|rger num|
|00002ff0| 62 65 72 20 6f 66 20 62 | 79 74 65 73 20 74 68 61 |ber of b|ytes tha|
|00003000| 6e 20 67 44 61 74 61 57 | 69 64 74 68 2e 22 20 41 |n gDataW|idth." A|
|00003010| 63 63 6f 72 64 69 6e 67 | 20 74 6f 20 74 68 69 73 |ccording| to this|
|00003020| 20 73 65 6e 74 65 6e 63 | 65 2c 20 73 69 6e 63 65 | sentenc|e, since|
|00003030| 20 67 44 61 74 61 57 69 | 64 74 68 20 69 73 20 38 | gDataWi|dth is 8|
|00003040| 20 62 69 74 73 2c 20 74 | 68 65 20 64 61 74 61 20 | bits, t|he data |
|00003050| 77 6f 75 6c 64 20 62 65 | 20 73 74 6f 72 65 64 20 |would be| stored |
|00003060| 69 6e 20 74 77 6f 20 62 | 79 74 65 73 2c 20 6e 6f |in two b|ytes, no|
|00003070| 74 20 6f 6e 65 2e 20 57 | 68 61 74 20 69 73 20 69 |t one. W|hat is i|
|00003080| 6e 74 65 6e 64 65 64 20 | 69 73 20 22 6c 61 72 67 |ntended |is "larg|
|00003090| 65 72 20 6f 72 20 65 71 | 75 61 6c 20 74 6f 22 2c |er or eq|ual to",|
|000030a0| 20 6f 72 20 74 6f 20 72 | 65 70 68 72 61 73 65 2c | or to r|ephrase,|
|000030b0| 20 22 74 68 65 20 73 6d | 61 6c 6c 65 73 74 20 6e | "the sm|allest n|
|000030c0| 75 6d 62 65 72 20 6f 66 | 20 62 79 74 65 73 20 74 |umber of| bytes t|
|000030d0| 68 61 74 20 77 69 6c 6c | 20 68 6f 6c 64 20 67 44 |hat will| hold gD|
|000030e0| 61 74 61 57 69 64 74 68 | 20 62 69 74 73 22 2e 0d |ataWidth| bits"..|
|000030f0| 0d 44 65 6e 69 73 20 47 | 2e 20 50 65 6c 6c 69 0d |.Denis G|. Pelli.|
|00003100| 49 6e 73 74 69 74 75 74 | 65 20 66 6f 72 20 53 65 |Institut|e for Se|
|00003110| 6e 73 6f 72 79 20 52 65 | 73 65 61 72 63 68 0d 53 |nsory Re|search.S|
|00003120| 79 72 61 63 75 73 65 20 | 55 6e 69 76 65 72 73 69 |yracuse |Universi|
|00003130| 74 79 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |ty......|........|
|00003140| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003150| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003160| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003170| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003180| 00 00 01 00 00 00 02 0e | 00 00 01 0e 00 00 00 6a |........|.......j|
|00003190| 00 00 00 ac 1a 50 72 6f | 6d 65 74 68 65 75 73 20 |.....Pro|metheus |
|000031a0| 50 72 6f 4d 6f 64 65 6d | 20 55 6c 74 69 6d 61 72 |ProModem| Ultimar|
|000031b0| 15 47 72 61 79 73 63 61 | 6c 65 20 49 6e 66 6f 72 |.Graysca|le Infor|
|000031c0| 6d 61 74 69 6f 6e 02 00 | 00 00 54 45 58 54 74 74 |mation..|..TEXTtt|
|000031d0| 00 00 54 45 58 54 74 74 | 78 74 00 00 00 00 00 00 |..TEXTtt|xt......|
|000031e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000031f0| 00 00 a7 e5 d5 8b 00 00 | 00 00 00 00 02 78 00 00 |........|.....x..|
|00003200| 00 00 00 00 00 00 c5 12 | 00 01 00 00 00 00 00 00 |........|........|
|00003210| 00 00 00 00 00 00 0e 00 | 00 00 00 ac 08 51 4d 20 |........|.....QM |
|00003220| 4d 65 6e 75 aa 6e 02 00 | 00 00 49 4e 49 54 43 45 |Menu.n..|..INITCE|
|00003230| 4d 4d 21 00 00 f0 02 a0 | 00 00 00 00 53 c5 00 00 |MM!.....|....S...|
|00003240| 00 00 00 00 00 00 00 00 | 00 00 00 00 92 f1 00 00 |........|........|
|00003250| 9c 00 a5 ee db 80 a5 ee | db 80 00 00 00 00 00 00 |........|........|
|00003260| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 02 00 00 |........|........|
|00003270| 00 00 00 00 00 00 00 00 | 00 00 00 00 07 ec 00 06 |........|........|
|00003280| 00 00 00 6c 00 03 00 00 | 00 00 00 00 00 00 00 00 |...l....|........|
|00003290| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000032a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000032b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000032c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000032d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000032e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000032f0| 00 00 00 10 00 00 00 00 | 00 23 00 0d 00 00 00 00 |........|.#......|
|00003300| 00 00 00 00 00 00 00 48 | 00 09 4d 6f 6e 61 63 6f |.......H|..Monaco|
|00003310| 00 00 00 00 00 00 14 e0 | 00 02 00 4c 00 29 00 01 |........|...L.)..|
|00003320| 00 29 00 06 00 b5 00 01 | 00 b5 00 06 00 04 00 50 |.)......|.......P|
|00003330| 00 20 01 dd 02 3d 00 50 | 00 20 01 dd 02 3d a7 71 |. ...=.P|. ...=.q|
|00003340| 83 a9 00 00 00 18 00 00 | 00 f4 00 00 00 00 01 00 |........|........|
|00003350| 00 00 00 18 00 01 00 00 | 2a 2f 00 00 2a 58 0d 43 |........|*/..*X.C|
|00003360| 6f 6d 70 61 72 65 5f 4d | 61 72 6b 00 00 00 00 1e |ompare_M|ark.....|
|00003370| 00 50 00 20 01 dd 02 3d | 00 50 00 20 01 dd 02 3d |.P. ...=|.P. ...=|
|00003380| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003390| 01 00 00 00 02 0e 00 00 | 01 0e 00 00 00 6a 00 ff |........|.....j..|
|000033a0| 4c c8 0c 7e 00 00 00 1c | 00 6a 00 01 41 64 72 73 |L..~....|.j..Adrs|
|000033b0| 00 01 00 12 4d 50 53 52 | 00 02 00 2a 00 01 ff ff |....MPSR|...*....|
|000033c0| 00 00 00 00 00 00 00 00 | 00 04 ff ff 00 00 00 70 |........|.......p|
|000033d0| 00 00 00 00 03 ed ff ff | 00 00 00 84 00 00 00 00 |........|........|
|000033e0| 03 ef ff ff 00 00 00 d0 | 00 00 00 00 03 f0 ff ff |........|........|
|000033f0| 00 00 00 ec 01 01 4b 00 | 00 00 00 00 00 00 00 00 |......K.|........|
+--------+-------------------------+-------------------------+--------+--------+